From 880a40f18e03ba1dd1ff2dc730a13903353a8139 Mon Sep 17 00:00:00 2001 From: Zephyruso <127948745+Zephyruso@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:08:05 +0800 Subject: [PATCH] chore: setup route --- src/App.tsx | 7 +++++-- src/components/Header.tsx | 4 ++-- src/constants/index.ts | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index edfe558..8b0ed0d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -32,7 +32,7 @@ export const App = () => { onMount(() => { if (!selectedEndpoint()) { - navigate('/setup') + navigate(ROUTES.Setup) } }) @@ -56,7 +56,10 @@ export const App = () => { } /> - + diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 9b5078b..2008889 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -119,7 +119,7 @@ export const Header = () => { const onSwitchEndpointClick = () => { setSelectedEndpoint('') - navigate('/setup') + navigate(ROUTES.Setup) } return ( @@ -167,7 +167,7 @@ export const Header = () => { - +