diff --git a/src/internal/text/TextHeadline.tsx b/src/internal/text/TextHeadline.tsx index 2d8191081c..53267dff5a 100644 --- a/src/internal/text/TextHeadline.tsx +++ b/src/internal/text/TextHeadline.tsx @@ -2,11 +2,14 @@ import type { ReactNode } from 'react'; type TextHeadlineReact = { children: ReactNode; + color?: string; }; -export function TextHeadline({ children }: TextHeadlineReact) { +export function TextHeadline({ children, color = 'black' }: TextHeadlineReact) { return ( - + {children} ); diff --git a/src/internal/text/TextLabel1.tsx b/src/internal/text/TextLabel1.tsx index b9cf67f4dd..fb6d8d4de6 100644 --- a/src/internal/text/TextLabel1.tsx +++ b/src/internal/text/TextLabel1.tsx @@ -2,12 +2,13 @@ import type { ReactNode } from 'react'; type TextLabel1React = { children: ReactNode; + color?: string; }; /* istanbul ignore next */ -export function TextLabel1({ children }: TextLabel1React) { +export function TextLabel1({ children, color = '#0A0B0D' }: TextLabel1React) { return ( - + {children} ); diff --git a/src/internal/text/TextLabel2.tsx b/src/internal/text/TextLabel2.tsx index a3800a2d02..4592de571c 100644 --- a/src/internal/text/TextLabel2.tsx +++ b/src/internal/text/TextLabel2.tsx @@ -2,12 +2,13 @@ import type { ReactNode } from 'react'; type TextLabel2React = { children: ReactNode; + color?: string; }; /* istanbul ignore next */ -export function TextLabel2({ children }: TextLabel2React) { +export function TextLabel2({ children, color = 'gray-500' }: TextLabel2React) { return ( - + {children} ); diff --git a/src/internal/text/index.ts b/src/internal/text/index.ts index 94f2fd7cf8..6702c0072d 100644 --- a/src/internal/text/index.ts +++ b/src/internal/text/index.ts @@ -1,2 +1,4 @@ export { TextBody } from './TextBody'; export { TextHeadline } from './TextHeadline'; +export { TextLabel1 } from './TextLabel1'; +export { TextLabel2 } from './TextLabel2'; diff --git a/src/swap/components/Swap.tsx b/src/swap/components/Swap.tsx index 3a4119cc1d..890276fb08 100644 --- a/src/swap/components/Swap.tsx +++ b/src/swap/components/Swap.tsx @@ -1,11 +1,10 @@ -import { useCallback, useMemo, useState } from 'react'; -import { cn } from '../../utils/cn'; +import type { SwapError, SwapReact } from '../types'; +import type { Token } from '../../token'; import { SwapContext } from '../context'; -import { getSwapQuote } from '../core/getSwapQuote'; import { formatTokenAmount } from '../../utils/formatTokenAmount'; +import { getSwapQuote } from '../core/getSwapQuote'; import { isSwapError } from '../core/isSwapError'; -import type { SwapError, SwapReact } from '../types'; -import type { Token } from '../../token'; +import { useCallback, useMemo, useState } from 'react'; export function Swap({ address, children, onError }: SwapReact) { const [fromAmount, setFromAmount] = useState(''); @@ -100,13 +99,8 @@ export function Swap({ address, children, onError }: SwapReact) { return ( -
-