Skip to content

Commit

Permalink
export type
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 14, 2024
1 parent 283c5de commit 59c9fa6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions site/docs/pages/swap/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ type SwapReact = {
};
```

## `SwapSettingsReact`

```ts
type SwapSettingsReact = {
icon: ReactNode;
title: string;
};
```

## `SwapToggleButtonReact`

```ts
Expand Down
1 change: 1 addition & 0 deletions src/swap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type {
SwapMessageReact,
SwapQuote,
SwapReact,
SwapSettingsReact,
SwapToggleButtonReact,
Transaction,
} from './types';
7 changes: 3 additions & 4 deletions src/swap/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 59c9fa6

Please sign in to comment.