+
+
{props.children}
);
}
-export default Button;
+function IconWithButton(props) {
+ return (
+
+ {props.icon}
+
{props.children}
+
+ );
+}
+
+export { Button, IconWithButton };
diff --git a/src/components/menu.jsx b/src/components/menu.jsx
index 553765f..60a5aa5 100644
--- a/src/components/menu.jsx
+++ b/src/components/menu.jsx
@@ -1,11 +1,42 @@
-import Button from "./button";
+import { Button, IconWithButton } from "./button";
+import {
+ MenuIcon,
+ ArchiveIcon,
+ ArrowCircleDownIcon,
+ CogIcon,
+} from "@heroicons/react/outline";
function Menu() {
return (
-
-
-
+
+
+
+
);
}
diff --git a/src/index.css b/src/index.css
index b098903..2c9fe39 100644
--- a/src/index.css
+++ b/src/index.css
@@ -4,5 +4,5 @@
body{
@apply dark:bg-zinc-900;
- @apply bg-zinc-300;
+ @apply bg-white;
}
\ No newline at end of file
diff --git a/src/pages/checkAuth.jsx b/src/pages/checkAuth.jsx
new file mode 100644
index 0000000..f79e819
--- /dev/null
+++ b/src/pages/checkAuth.jsx
@@ -0,0 +1,20 @@
+import { useNavigate } from "react-router-dom";
+import { invoke } from "@tauri-apps/api/tauri";
+import { useEffect } from "react";
+import { Button } from "../components/button";
+import React, { useState } from "react";
+
+function CheckAuth() {
+ const navigate = useNavigate();
+
+ useEffect(() => {
+ invoke("check_auth").then((authorised) => {
+ if (authorised) navigate("/main");
+ else navigate("/auth");
+ });
+ });
+
+ return
Wait...
;
+}
+
+export default CheckAuth;