From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 11:03:34 +0700 Subject: prettier --- src/core/components/elements/Sidebar/Sidebar.jsx | 84 +++++++++++++----------- 1 file changed, 46 insertions(+), 38 deletions(-) (limited to 'src/core/components/elements/Sidebar/Sidebar.jsx') diff --git a/src/core/components/elements/Sidebar/Sidebar.jsx b/src/core/components/elements/Sidebar/Sidebar.jsx index 48ceacf6..08f1fed5 100644 --- a/src/core/components/elements/Sidebar/Sidebar.jsx +++ b/src/core/components/elements/Sidebar/Sidebar.jsx @@ -1,20 +1,16 @@ -import Link from "../Link/Link" -import greeting from "@/core/utils/greeting" -import useAuth from "@/core/hooks/useAuth" -import { AnimatePresence, motion } from "framer-motion" -import { CogIcon } from "@heroicons/react/24/outline" +import Link from '../Link/Link' +import greeting from '@/core/utils/greeting' +import useAuth from '@/core/hooks/useAuth' +import { AnimatePresence, motion } from 'framer-motion' +import { CogIcon } from '@heroicons/react/24/outline' -const Sidebar = ({ - active, - close -}) => { +const Sidebar = ({ active, close }) => { const auth = useAuth() const SidebarLink = ({ children, ...props }) => ( - { children } + + {children} + ) const itemClassName = 'px-4 py-3 block !text-gray_r-12/80 font-normal' @@ -23,10 +19,10 @@ const Sidebar = ({ return ( <> - { active && ( + {active && ( <> -
-
- { !auth && ( +
+
+ {!auth && ( <> - Daftar - Masuk + + Daftar + + + Masuk + - ) } - { auth && ( + )} + {auth && ( <> -
- { greeting() }, - - { auth?.name } +
+ {greeting()}, + + {auth?.name}
- - + - ) } + )}
- + Semua Brand - + Tentang Indoteknik - + Pusat Bantuan
- ) } + )} ) } -export default Sidebar \ No newline at end of file +export default Sidebar -- cgit v1.2.3