From 55773cda390eacdad89e939c6bf6ac72081ffae6 Mon Sep 17 00:00:00 2001 From: Rashadjaxon Date: Wed, 15 May 2024 09:09:02 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9Dworked=20on=20folder=20side=20bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/empty-folder-icon.png | Bin 0 -> 5384 bytes src/components/FolderSideBar.js | 21 +++++++++++++++++++++ src/components/SideBar.js | 5 ++++- src/pages/Main.js | 6 ++++-- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/assets/empty-folder-icon.png create mode 100644 src/components/FolderSideBar.js diff --git a/src/assets/empty-folder-icon.png b/src/assets/empty-folder-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..30f4bbcbd71e93fdde31f94e24ac10e91bf607ea GIT binary patch literal 5384 zcmeHL`CC(0^FIkY2&h#fyGkv!N1W>+oEUbmU|_07frA zUx>Tgjm+RhlLW881mC!bgyd7_!$ER#GCC@j7$0_u6poHNADKJuW(vT%E8ibF;CCT! zOhTTF#p0z?$)4z~oA-Q+dRn_l>!%E-@9u4~T{rB4{N>1x@BiG@`?7ZKCunMyZ;w&A zM$)io_`~1do^M4)#rQrxZvHFs)uYk_YpstV^}lm&v;X??y4yGNRFy529`-|D+YHSw zw^IrfDeubmM1ESXtS3**xQ)z|3Ff-BU{(KzNA#O*41>VRgU}1+HSCbZ;*tidI{OLR zWqQbjp?~^1j@c5>;qUBM$f~HQD5)shcj2#zLKFW@B8$ynnR<;W#`;tg1g6C_8z=W! z1qcHK45dPTzj6?ymUijz>abFOcdoKXjt*-&g^>iMJ>Zw5#3(8sLg1+UgFFhl0u8ZV z+)tv7Wk6I`y#qHJ_HPs&Hkigf5C zf@5ci#dj~*T{u=}J$A?TRN`FC9+2FP4Pc+Wc$zqSk6)C3hV0W6Rt)lJk$#1-%lCLi z`A6#>DlfU^AW3!2B_UnYuc2YPxMMx+xp6rQ*%?`Po;}r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% ztF^XllUr?gQt~XXitC=pz&r~#@^^MtJsOP(Eum~7Yl3J7tSr%DetEt&H(sr7xsW_y z_co@+CxGgF01(Xb@M&?1rA#Z2SXPcoXlNI^d}U8aU44qL;1~vDw2dDOfPVH+fRL#c*A^lYnasDBF zUehfpVKX4F8Zt=sFh3GD0upO}js4xsE01?1Zeo2zy^_)xXyy#v$i^IJdrU<`k4~XvTm){F2a9PT4s2Q!pTbTaj_SF86C5oUoPGm20BNMH+g%v zl&j9xuGj8N3@z)!t^A}YWR5h_9hyfG1a>v9-C#M>dTgX;#c?fgSV)(5WIajt>&UW= zw9ur5?JZ8Zpy0@#SyQR|6S>x7;~14&nBOIEr>->IM@7tDUVJLg#%-9!w@wEx_(KYY hKHM$*FON^NYT#bSD<*|?1%B4^doS-p6`q8j{}0L$${7Fv literal 0 HcmV?d00001 diff --git a/src/components/FolderSideBar.js b/src/components/FolderSideBar.js new file mode 100644 index 0000000..26cc49b --- /dev/null +++ b/src/components/FolderSideBar.js @@ -0,0 +1,21 @@ +import React from "react" +import FolderIcon from "../assets/empty-folder-icon.png" + +const FolderSideBar = () => { + return ( +
+
+
+ clear folder icon +

Public

+
+
+ clear folder icon +

Private

+
+
+
+ ) +} + +export default FolderSideBar diff --git a/src/components/SideBar.js b/src/components/SideBar.js index c33c291..d56b8e2 100644 --- a/src/components/SideBar.js +++ b/src/components/SideBar.js @@ -3,7 +3,10 @@ import NotesCard from "./NotesCard" const SideBar = ({ notes }) => { return ( <> -
+
{notes?.map((note) => ( ))} diff --git a/src/pages/Main.js b/src/pages/Main.js index f3e3219..95c6438 100644 --- a/src/pages/Main.js +++ b/src/pages/Main.js @@ -1,7 +1,8 @@ import React from "react" -import SideBar from "../components/SideBar" import Note from "../components/Note" import { useFetchGet } from "../utilities/useFetchGet" +import FolderSideBar from "../components/FolderSideBar" +import SideBar from "../components/SideBar" const Main = () => { const { data } = useFetchGet("notes") @@ -9,7 +10,8 @@ const Main = () => { return (
-
+
+