Skip to content

Commit

Permalink
Merge branch 'main' of github.com:deriv-com/ui into shayan/update-not…
Browse files Browse the repository at this point in the history
…ifications-and-tooltips-components
  • Loading branch information
shayan-deriv committed May 30, 2024
2 parents 06d262f + ad81063 commit 5f12906
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
50 changes: 50 additions & 0 deletions playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,56 @@ const App = () => {
</Drawer.Content>
<Drawer.Footer>This is a footer</Drawer.Footer>
</Drawer>
<Wrapper variant="right">
<AccountSwitcher
activeAccount={
accountsList.find(
(account) => account.isActive,
) || {
icon: <CurrencyBtcIcon />,
currencyLabel: "Bitcoin",
loginid: "id2",
balance: "0",
currency: "BTC",
isVirtual: false,
isActive: true,
}
}
>
<AccountSwitcher.Tab title="Real">
<Divider color="#f2f3f4" height="4px" />
<AccountSwitcher.AccountsPanel title="Non-EU">
{accountsList
.filter((account) => !account.isVirtual)
.map((account) => (
<AccountSwitcher.AccountsItem
key={account.loginid}
account={account}
onSelectAccount={() => {}}
/>
))}
</AccountSwitcher.AccountsPanel>
<Divider color="#f2f3f4" height="4px" />
<AccountSwitcher.TotalAsset
title="Total assets"
description="test description text comes here"
value="10,021 USD"
/>
<Divider color="#f2f3f4" height="4px" />
<AccountSwitcher.TradersHubLink>
Looking for CFD?{" "}
</AccountSwitcher.TradersHubLink>
<Divider color="#f2f3f4" height="4px" />

<AccountSwitcher.Footer>
this is a footer
</AccountSwitcher.Footer>
</AccountSwitcher.Tab>
<AccountSwitcher.Tab title="Demo">
test 2
</AccountSwitcher.Tab>
</AccountSwitcher>
</Wrapper>
</>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
PlatformSwitcherItem,
DesktopLanguagesModal,
MobileLanguagesDrawer,
Notifications,
TooltipMenuIcon,
} from "./components/AppLayout";
export { ContextMenu } from "./components/ContextMenu";

0 comments on commit 5f12906

Please sign in to comment.