From c831a0be853fbdf1c9f57650b7c06cc64670b014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E9=98=B3?= <3311118881@qq.com> Date: Fri, 16 Aug 2024 12:10:18 +0800 Subject: [PATCH] 1 --- src/components/Sidebar/index.tsx | 8 +++++--- src/main.tsx | 1 - src/pages/Dashboard/index.tsx | 20 +++----------------- 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index f1d781f..9f356e2 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -1,8 +1,8 @@ import React, { useEffect, useRef, useState } from 'react'; import { NavLink, useLocation } from 'react-router-dom'; import SidebarLinkGroup from './SidebarLinkGroup'; -import Logo from '../../images/logo/logo.svg'; import { BiEditAlt, BiFolderOpen, BiHomeSmile, BiSliderAlt } from "react-icons/bi"; +import { LuCrown } from "react-icons/lu"; import { BiCategoryAlt } from "react-icons/bi"; import { LiaRssSolid } from "react-icons/lia"; import { IoIosStats } from "react-icons/io"; @@ -89,9 +89,11 @@ const Sidebar = ({ sidebarOpen, setSidebarOpen }: SidebarProps) => { className={`absolute left-0 top-0 z-9999 flex h-screen w-64 flex-col overflow-y-hidden bg-black duration-300 ease-linear dark:bg-boxdark lg:static lg:translate-x-0 ${sidebarOpen ? 'translate-x-0' : '-translate-x-full' }`} > -