From 59c9fa63f663ffbf7844fe0ebe89aadd0a4895ae Mon Sep 17 00:00:00 2001 From: Alec Chen <93971719+0xAlec@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:03:31 -0700 Subject: [PATCH] export type --- site/docs/pages/swap/types.mdx | 9 +++++++++ src/swap/index.ts | 1 + src/swap/types.ts | 7 +++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/site/docs/pages/swap/types.mdx b/site/docs/pages/swap/types.mdx index 43833d288cf..9f774d4d2bc 100644 --- a/site/docs/pages/swap/types.mdx +++ b/site/docs/pages/swap/types.mdx @@ -141,6 +141,15 @@ type SwapReact = { }; ``` +## `SwapSettingsReact` + +```ts +type SwapSettingsReact = { + icon: ReactNode; + title: string; +}; +``` + ## `SwapToggleButtonReact` ```ts diff --git a/src/swap/index.ts b/src/swap/index.ts index d2a515a9a3a..32307b8410f 100644 --- a/src/swap/index.ts +++ b/src/swap/index.ts @@ -22,6 +22,7 @@ export type { SwapMessageReact, SwapQuote, SwapReact, + SwapSettingsReact, SwapToggleButtonReact, Transaction, } from './types'; diff --git a/src/swap/types.ts b/src/swap/types.ts index 4dbd2af281e..cb69fa11b17 100644 --- a/src/swap/types.ts +++ b/src/swap/types.ts @@ -219,15 +219,14 @@ export type SwapReact = { title?: string; // Title for the Swap component. (default: "Swap") }; +/** + * Note: exported as public Type + */ export type SwapSettingsReact = { icon: ReactNode; title: string; }; -export type SwapSettingsContainerReact = { - className?: string; // Optional className override for top div element. -}; - /** * Note: exported as public Type */