From ecbc896974dc33e114ded164f56163f6cbf27960 Mon Sep 17 00:00:00 2001 From: Shadab Khan Date: Thu, 9 Mar 2023 19:23:11 +0530 Subject: [PATCH] feat(bridge-ui): support route param to directly open transactions tab --- packages/bridge-ui/src/App.svelte | 2 +- packages/bridge-ui/src/pages/home/Home.svelte | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/bridge-ui/src/App.svelte b/packages/bridge-ui/src/App.svelte index cca26a6823..12b7429747 100644 --- a/packages/bridge-ui/src/App.svelte +++ b/packages/bridge-ui/src/App.svelte @@ -251,7 +251,7 @@ }; const routes = { - "/": wrap({ + "/:tab?": wrap({ component: Home, props: {}, userData: {}, diff --git a/packages/bridge-ui/src/pages/home/Home.svelte b/packages/bridge-ui/src/pages/home/Home.svelte index 9c5d42a0e0..63fd6c8a0b 100644 --- a/packages/bridge-ui/src/pages/home/Home.svelte +++ b/packages/bridge-ui/src/pages/home/Home.svelte @@ -1,14 +1,15 @@