From bb331f7f3f2fc412bdb13bf7e97f9d033332b6d5 Mon Sep 17 00:00:00 2001 From: sosokker Date: Sun, 12 Nov 2023 23:39:23 +0700 Subject: [PATCH 1/2] Use react-icons instead for icons --- frontend/src/components/IconSideNav.jsx | 36 +++++++++++-------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/IconSideNav.jsx b/frontend/src/components/IconSideNav.jsx index f9a5eb5..65debad 100644 --- a/frontend/src/components/IconSideNav.jsx +++ b/frontend/src/components/IconSideNav.jsx @@ -1,18 +1,20 @@ import { useState } from "react"; +import { + AiOutlineHome, + AiOutlineSchedule, + AiOutlineUnorderedList, + AiOutlinePieChart, + AiOutlinePlus, +} from "react-icons/ai"; import { AnimatePresence, motion } from "framer-motion"; import { Link, useNavigate } from "react-router-dom"; -import homeLogo from "../assets/home.png"; -import calendarLogo from "../assets/calendar.png"; -import planLogo from "../assets/planning.png"; -import pieLogo from "../assets/pie-chart.png"; -import plusLogo from "../assets/plus.png"; const menuItems = [ - { id: 0, path: "/", icon: , logo: homeLogo }, - { id: 1, path: "/tasks", icon: , logo: planLogo }, - { id: 2, path: "/calendar", icon: , logo: calendarLogo }, - { id: 3, path: "/analytic", icon: , logo: pieLogo }, - { id: 4, path: "/priority", icon: , logo: plusLogo }, + { id: 0, path: "/", icon: }, + { id: 1, path: "/tasks", icon: }, + { id: 2, path: "/calendar", icon: }, + { id: 3, path: "/analytic", icon: }, + { id: 4, path: "/priority", icon: }, ]; const IconSideNav = () => { @@ -28,14 +30,13 @@ const SideNav = () => { return (