chore: remove memo chat components (#2073)

This commit is contained in:
boojack
2023-08-03 23:37:46 +08:00
committed by GitHub
parent 1ce82ba0d6
commit aa26cc30d7
13 changed files with 0 additions and 521 deletions

View File

@ -16,7 +16,6 @@ const Home = lazy(() => import("@/pages/Home"));
const MemoDetail = lazy(() => import("@/pages/MemoDetail"));
const EmbedMemo = lazy(() => import("@/pages/EmbedMemo"));
const NotFound = lazy(() => import("@/pages/NotFound"));
const MemoChat = lazy(() => import("@/pages/MemoChat"));
const initialGlobalStateLoader = (() => {
let done = false;
@ -162,27 +161,6 @@ const router = createBrowserRouter([
return null;
},
},
{
path: "memo-chat",
element: <MemoChat />,
loader: async () => {
await initialGlobalStateLoader();
try {
await initialUserState();
} catch (error) {
// do nth
}
const { user } = store.getState().user;
if (isNullorUndefined(user)) {
return redirect("/auth");
}
return null;
},
},
{
path: "archived",
element: <Archived />,