diff --git a/.changeset/fuzzy-eggs-cross.md b/.changeset/fuzzy-eggs-cross.md index ce72b3d156..ebe85735d8 100644 --- a/.changeset/fuzzy-eggs-cross.md +++ b/.changeset/fuzzy-eggs-cross.md @@ -2,4 +2,4 @@ "@coinbase/onchainkit": patch --- -- **feat**: introduce Inter font-family and internal text components. By @kyhyco #506 +- **feat**: introduce `Inter` font-family and internal text components. By @kyhyco #506 diff --git a/src/internal/text/TextBody.tsx b/src/internal/text/TextBody.tsx index 2339a3ddda..18060126af 100644 --- a/src/internal/text/TextBody.tsx +++ b/src/internal/text/TextBody.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextBodyReact = { children: ReactNode; @@ -6,7 +6,7 @@ type TextBodyReact = { export function TextBody({ children }: TextBodyReact) { return ( - + {children} ); diff --git a/src/internal/text/TextCaption.tsx b/src/internal/text/TextCaption.tsx index ace89ad40c..964735e422 100644 --- a/src/internal/text/TextCaption.tsx +++ b/src/internal/text/TextCaption.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextCaptionReact = { children: ReactNode; @@ -7,6 +7,6 @@ type TextCaptionReact = { /* istanbul ignore next */ export function TextCaption({ children }: TextCaptionReact) { return ( - {children} + {children} ); } diff --git a/src/internal/text/TextHeadline.tsx b/src/internal/text/TextHeadline.tsx index c1a184578a..f0023d7d30 100644 --- a/src/internal/text/TextHeadline.tsx +++ b/src/internal/text/TextHeadline.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextHeadlineReact = { children: ReactNode; @@ -6,7 +6,7 @@ type TextHeadlineReact = { export function TextHeadline({ children }: TextHeadlineReact) { return ( - + {children} ); diff --git a/src/internal/text/TextLabel1.tsx b/src/internal/text/TextLabel1.tsx index 1f6e292e81..b7884cd98b 100644 --- a/src/internal/text/TextLabel1.tsx +++ b/src/internal/text/TextLabel1.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextLabel1React = { children: ReactNode; @@ -7,7 +7,7 @@ type TextLabel1React = { /* istanbul ignore next */ export function TextLabel1({ children }: TextLabel1React) { return ( - + {children} ); diff --git a/src/internal/text/TextLabel2.tsx b/src/internal/text/TextLabel2.tsx index a52032edde..cbd416b7ce 100644 --- a/src/internal/text/TextLabel2.tsx +++ b/src/internal/text/TextLabel2.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextLabel2React = { children: ReactNode; @@ -7,7 +7,7 @@ type TextLabel2React = { /* istanbul ignore next */ export function TextLabel2({ children }: TextLabel2React) { return ( - + {children} ); diff --git a/src/internal/text/TextLegal.tsx b/src/internal/text/TextLegal.tsx index ee8d1126a7..08381a9d3b 100644 --- a/src/internal/text/TextLegal.tsx +++ b/src/internal/text/TextLegal.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import type { ReactNode } from 'react'; type TextLegalReact = { children: ReactNode; diff --git a/src/swap/components/SwapAmountInput.test.tsx b/src/swap/components/SwapAmountInput.test.tsx index 81975a66c1..72279cfd2e 100644 --- a/src/swap/components/SwapAmountInput.test.tsx +++ b/src/swap/components/SwapAmountInput.test.tsx @@ -6,7 +6,7 @@ import { render, screen, fireEvent } from '@testing-library/react'; import '@testing-library/jest-dom'; import { SwapAmountInput } from './SwapAmountInput'; import { SwapContext } from '../context'; -import { type Token } from '../../token'; +import type { Token } from '../../token'; import type { SwapContextType } from '../types'; import type { Address } from 'viem'; diff --git a/src/swap/components/SwapAmountInput.tsx b/src/swap/components/SwapAmountInput.tsx index 02b032692f..7da5c463bb 100644 --- a/src/swap/components/SwapAmountInput.tsx +++ b/src/swap/components/SwapAmountInput.tsx @@ -83,7 +83,7 @@ export function SwapAmountInput({ label, token, type }: SwapAmountInputReact) {
{roundedBalance && ( - + )}
@@ -92,8 +92,8 @@ export function SwapAmountInput({ label, token, type }: SwapAmountInputReact) {