From d52afd66f33feea4c7bac1f09b4484a5e2f30505 Mon Sep 17 00:00:00 2001
From: Yee Jia Wei
Date: Sat, 16 Dec 2023 22:16:25 +0800
Subject: [PATCH] update sidebar icons
---
components/Sidebar.tsx | 82 ++++++++++++++----------------------------
1 file changed, 27 insertions(+), 55 deletions(-)
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 6f5693d..abb2077 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -1,14 +1,4 @@
import useCollectionStore from "@/store/collections";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import {
- faFolder,
- faHashtag,
- faChartSimple,
- faChevronDown,
- faLink,
- faGlobe,
- faThumbTack,
-} from "@fortawesome/free-solid-svg-icons";
import useTagStore from "@/store/tags";
import Link from "next/link";
import { useRouter } from "next/router";
@@ -25,7 +15,7 @@ export default function Sidebar({ className }: { className?: string }) {
() => {
const storedValue = localStorage.getItem("collectionDisclosure");
return storedValue ? storedValue === "true" : true;
- }
+ },
);
const { collections } = useCollectionStore();
@@ -42,7 +32,7 @@ export default function Sidebar({ className }: { className?: string }) {
useEffect(() => {
localStorage.setItem(
"collectionDisclosure",
- collectionDisclosure ? "true" : "false"
+ collectionDisclosure ? "true" : "false",
);
}, [collectionDisclosure]);
@@ -52,21 +42,19 @@ export default function Sidebar({ className }: { className?: string }) {
return (
@@ -123,16 +102,14 @@ export default function Sidebar({ className }: { className?: string }) {
onClick={() => {
setCollectionDisclosure(!collectionDisclosure);
}}
- className="flex items-center justify-between text-sm w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"
+ className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"
>
- Collections
-
- Collections
+
+ >
-
+ >
{e.name}
{e.isPublic ? (
-
+ >
) : undefined}
{e._count?.links}
@@ -194,13 +169,14 @@ export default function Sidebar({ className }: { className?: string }) {
onClick={() => {
setTagDisclosure(!tagDisclosure);
}}
- className="flex items-center justify-between text-sm w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"
+ className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-5"
>
-
Tags
-
+
Tags
+
-
-
+
{e.name}
{e._count?.links}