diff --git a/packages/bridge-ui/src/pages/home/Home.svelte b/packages/bridge-ui/src/pages/home/Home.svelte index d02f82316c1..21c5aac799e 100644 --- a/packages/bridge-ui/src/pages/home/Home.svelte +++ b/packages/bridge-ui/src/pages/home/Home.svelte @@ -10,13 +10,15 @@ let bridgeWidth: number; let bridgeHeight: number; - // Tab's name <=> route association + // List of tab's name <=> route association const tabsRoute = [ { name: 'bridge', href: '/' }, { name: 'transactions', href: '/transactions' }, // Add more tabs if needed ]; + // TODO: we're assuming we have only two tabs here. + // Change strategy if needed. $: activeTab = $location === '/' ? tabsRoute[0].name : tabsRoute[1].name; // TODO: do we really need all these tricks to style containers