diff --git a/src/Components/Sidebar/Sidebar.tsx b/src/Components/Sidebar/Sidebar.tsx index 3463d9b..ab8ad0d 100644 --- a/src/Components/Sidebar/Sidebar.tsx +++ b/src/Components/Sidebar/Sidebar.tsx @@ -56,59 +56,55 @@ export default function Sidebar() { marginBottom: 8, }} /> -
- -

- Dashboard -

-
-
- { - navigate("/"); - await dispatch(auth_toggle()); - await setAccessToken(""); - await setRefreshToken(""); - toast("Logged out", { - position: "top-right", - autoClose: 2000, - hideProgressBar: false, - closeOnClick: true, - pauseOnHover: true, - draggable: true, - progress: undefined, - theme: "light", - }); - }} - icon={ - - } - label={"Log out"} - /> -
+ { + navigate("/dashboard"); + }} + icon={ + + } + label={"Dashboard"} + /> + { + navigate("/"); + await dispatch(auth_toggle()); + await setAccessToken(""); + await setRefreshToken(""); + toast("Logged out", { + position: "top-right", + autoClose: 2000, + hideProgressBar: false, + closeOnClick: true, + pauseOnHover: true, + draggable: true, + progress: undefined, + theme: "light", + }); + }} + icon={ + + } + label={"Log out"} + /> ); }