mirror of
https://github.com/aykhans/slash-e.git
synced 2026-11-10 15:41:09 +00:00
chore: use shortcut v2 api
This commit is contained in:
1 parent
c449669793
commit
61b167ef66
32 files changed
+515
-724
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user