From e33a330786ffbfcd774de00dc697c6dff47faf27 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Mon, 20 Feb 2023 14:20:44 +0700 Subject: fix --- src/core/components/elements/Sidebar/Sidebar.jsx | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/core/components/elements/Sidebar') diff --git a/src/core/components/elements/Sidebar/Sidebar.jsx b/src/core/components/elements/Sidebar/Sidebar.jsx index 249ccbce..74984393 100644 --- a/src/core/components/elements/Sidebar/Sidebar.jsx +++ b/src/core/components/elements/Sidebar/Sidebar.jsx @@ -1,14 +1,40 @@ +import { getAuth } from "@/core/utils/auth" import Link from "../Link/Link" +import greeting from "@/core/utils/greeting" +import { Cog6ToothIcon } from "@heroicons/react/24/solid" const Sidebar = ({ active, close }) => { + const auth = getAuth() + return ( <> { active &&
}
+
+ { !auth && ( + <> + Daftar + Masuk + + ) } + { auth && ( + <> +
+ {/* { greeting() }, */} + + { auth?.name } + +
+ + + + + ) } +
Semua Brand -- cgit v1.2.3