- window.localStorage.replace(
- `${process.env.VITE_APP_URL_STUDENT}/login`
- )
+ window.location.replace(`${process.env.VITE_APP_URL_TEACHER}/login`)
}
>
diff --git a/packages/main/src/router/Layout/index.tsx b/packages/main/src/router/Layout/index.tsx
index a449a97a..fc65dffb 100644
--- a/packages/main/src/router/Layout/index.tsx
+++ b/packages/main/src/router/Layout/index.tsx
@@ -1,16 +1,18 @@
import { Header, Modal } from "./components";
-import { Outlet } from "react-router-dom";
import { useState } from "react";
export * from "./ViewLayout";
-export const Layout = () => {
+interface IProp {
+ children: React.ReactElement | React.ReactElement[];
+}
+export const Layout = ({ children }: IProp) => {
const [opened, setOpened] = useState(false);
return (
-
+ {children}
);
};
diff --git a/packages/main/src/router/index.tsx b/packages/main/src/router/index.tsx
index d4fd970d..2237a3cd 100644
--- a/packages/main/src/router/index.tsx
+++ b/packages/main/src/router/index.tsx
@@ -6,10 +6,14 @@ export const Router = () => {
return (
- }>
- } />
- } />
-
+
+ <_.Landing />
+
+ }
+ />
} />
} />
@@ -18,6 +22,7 @@ export const Router = () => {
} />
} />
+ } />
} />
diff --git a/packages/teacher/src/page/Library/Button.tsx b/packages/teacher/src/page/Library/Button.tsx
index a9ec705c..9fb17f7d 100644
--- a/packages/teacher/src/page/Library/Button.tsx
+++ b/packages/teacher/src/page/Library/Button.tsx
@@ -9,7 +9,7 @@ interface IProp {
const navigate = (id: string) =>
window.location.replace(
- `${process.env._VITE_APP_URL_MAIN}/library/${id}?prev=${window.location.href}`
+ `http://localhost:3000/viewer/library/${id}?prev=${window.location.href}`
);
export const Button = ({ id, year, grade, generation }: IProp) => {