chore: add create shortcut button when not found

This commit is contained in:
Steven
2023-09-30 22:03:18 +08:00
parent 690e14e4ed
commit 0fd54426e6
4 changed files with 73 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import { createBrowserRouter } from "react-router-dom";
import NotFound from "@/pages/NotFound";
import SignIn from "@/pages/SignIn";
import SignUp from "@/pages/SignUp";
import SubscriptionSetting from "@/pages/SubscriptionSetting";
@ -53,6 +54,10 @@ const router = createBrowserRouter([
},
],
},
{
path: "*",
element: <NotFound />,
},
],
},
]);