icon color

This commit is contained in:
VividTruthKeeper 2022-09-19 14:35:37 +05:00
parent a70101a187
commit 5528e94394
1 changed files with 15 additions and 7 deletions

View File

@ -2,6 +2,7 @@
import { useContext, useState } from "react"; import { useContext, useState } from "react";
import { UserContext } from "../context/UserContext"; import { UserContext } from "../context/UserContext";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { IconContext } from "react-icons";
// Icons // Icons
import { ImStatsDots } from "react-icons/im"; import { ImStatsDots } from "react-icons/im";
@ -31,13 +32,17 @@ const Nav = ({ aside, setAside }: Props) => {
localStorage.setItem("lastLocation", "/dashboard"); localStorage.setItem("lastLocation", "/dashboard");
}} }}
> >
<IconContext.Provider value={{ color: "#393e46" }}>
<ImStatsDots /> <ImStatsDots />
</IconContext.Provider>
</Link> </Link>
<IconContext.Provider value={{ color: "#393e46" }}>
<GiHamburgerMenu <GiHamburgerMenu
type="button" type="button"
className="nav__btn" className="nav__btn"
onClick={() => setAside(!aside)} onClick={() => setAside(!aside)}
/> />
</IconContext.Provider>
</div> </div>
<div className="nav__right"> <div className="nav__right">
<div <div
@ -46,7 +51,10 @@ const Nav = ({ aside, setAside }: Props) => {
setDropdown(!dropdown); setDropdown(!dropdown);
}} }}
> >
<IconContext.Provider value={{ color: "#393e46" }}>
<AiOutlineUser className="nav__right__user__img" /> <AiOutlineUser className="nav__right__user__img" />
</IconContext.Provider>
<span>Profile</span> <span>Profile</span>
<div <div
className={dropdown ? "nav__dropdown active" : "nav__dropdown"} className={dropdown ? "nav__dropdown active" : "nav__dropdown"}