diff --git a/playground/index.tsx b/playground/index.tsx index 194122d3..51736534 100644 --- a/playground/index.tsx +++ b/playground/index.tsx @@ -3,7 +3,7 @@ import ReactDOM from "react-dom/client"; import { LegacyReportsIcon, LabelPairedHouseBlankMdRegularIcon, - LegacyChevronRight2pxIcon + LegacyChevronRight2pxIcon, } from "@deriv/quill-icons"; import { MenuItem, @@ -13,36 +13,65 @@ import { DerivLogo, Button, Wrapper, + PlatformSwitcher, + Text, + PlatformSwitcherItem, } from "../src/main"; +import { platformsConfig } from "./platformsConfig"; const App = () => { const { isMobile } = useDevice(); const [is_drawer_open, setDrawerOpen] = React.useState(false); + return (
{!isMobile ? (
- - + + + {platformsConfig.map( + ({ description, href, icon, active }) => ( + + ), + )} + } > - Trader's Hub + Trader's Hub } + > + Reports + + } > - Reports + Cashier
@@ -62,19 +91,29 @@ const App = () => { -
+
} - rightComponent={} + rightComponent={ + + } > Trader's Hub -
This is a footer diff --git a/playground/platformsConfig.tsx b/playground/platformsConfig.tsx new file mode 100644 index 00000000..5e7565e1 --- /dev/null +++ b/playground/platformsConfig.tsx @@ -0,0 +1,113 @@ +import React, { ReactNode } from "react"; +import { + DerivProductDerivTraderBrandLightLogoWordmarkHorizontalIcon, + DerivProductDerivBotBrandLightLogoWordmarkHorizontalIcon, + PartnersProductSmarttraderBrandLightLogoWordmarkIcon, + PartnersProductBinaryBotBrandLightLogoWordmarkHorizontalIcon, +} from "@deriv/quill-icons/Logo"; + +export type PlatformsConfig = { + href: string; + description: string; + icon: ReactNode; + buttonIcon: ReactNode; + active: boolean; + showInEU: boolean; +}; + +export const platformsConfig: PlatformsConfig[] = [ + { + href: "https://app.deriv.com", + showInEU: true, + active: true, + description: + "A whole new trading experience on a powerful yet easy to use platform.", + icon: ( + + ), + buttonIcon: ( + + ), + }, + { + href: "https://app.deriv.com/bot", + showInEU: false, + active: false, + description: "Automated trading at your fingertips. No coding needed.", + icon: ( + + ), + buttonIcon: ( + + ), + }, + { + href: "https://smarttrader.deriv.com", + showInEU: false, + active: false, + description: + "Trade the world’s markets with our popular user-friendly platform.", + icon: ( + + ), + buttonIcon: ( + + ), + }, + { + href: "https://bot.deriv.com", + showInEU: false, + active: false, + description: + "Our classic “drag-and-drop” tool for creating trading bots, featuring pop-up trading charts, for advanced users.", + icon: ( + + ), + buttonIcon: ( + + ), + }, + { + href: "https://app.deriv.com", + showInEU: true, + active: false, + description: + "A whole new trading experience on a powerful yet easy to use platform.", + icon: ( + + ), + buttonIcon: ( + + ), + }, +];