chore: use shortcut v2 api

This commit is contained in:
Steven
2023-11-21 23:33:34 +08:00
parent c449669793
commit 61b167ef66
32 changed files with 515 additions and 724 deletions

View File

@@ -11,7 +11,6 @@ import App from "../App";
import Root from "../layouts/Root";
import Home from "../pages/Home";
import ShortcutDetail from "../pages/ShortcutDetail";
import { shortcutService } from "../services";
const router = createBrowserRouter([
{
@@ -41,10 +40,6 @@ const router = createBrowserRouter([
{
path: "/shortcut/:shortcutId",
element: <ShortcutDetail />,
loader: async ({ params }) => {
const shortcut = await shortcutService.getOrFetchShortcutById(Number(params.shortcutId));
return shortcut;
},
},
{
path: "/setting/general",