fix sidebar responsive & design dark mode turns

This commit is contained in:
Ehsan
2024-09-30 08:07:31 +03:30
parent 6ed475ef35
commit ee46a8c447
7 changed files with 16 additions and 9 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ import CategoryP from "@/components/icons/CategoryP";
import ProfileAddP from "@/components/icons/ProfileAddP";
import ProfileCircleP from "@/components/icons/ProfileCircleP";
function Links({ open }) {
function Links({ open, setActive }) {
const list = [
{ name: "دشبورد", src: "/panel/dashboard", icon: <CategoryP /> },
{
@@ -36,6 +36,7 @@ function Links({ open }) {
<Button
fullWidth
variant="text"
onClick={() => setActive(false)}
className={`
!p-[8px] !flex !items-center !justify-start !gap-[8px] !text-[16px] !rounded-[8px] !transition-all !duration-500
${
+1 -1
View File
@@ -34,7 +34,7 @@ function Sidebar({ active, setActive, open, setOpen }) {
<div className="w-full">
<HeadMd open={open} setOpen={setOpen} />
<HeadSm setActive={setActive} />
<Links open={open} />
<Links open={open} setActive={setActive} />
</div>
<div
className={`w-full justify-center overflow-hidden transition-all duration-500 ${