Added icons
This commit is contained in:
parent
98e40f25e6
commit
ee705b548f
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { cn } from "../../../../utils/utils";
|
import { cn } from "../../../../utils/utils";
|
||||||
import { buttonVariants } from "../../../ui/button";
|
import { buttonVariants } from "../../../ui/button";
|
||||||
|
import ForwardedIconComponent from "../../../genericIconComponent";
|
||||||
|
|
||||||
type SideBarButtonsComponentProps = {
|
type SideBarButtonsComponentProps = {
|
||||||
items: {
|
items: {
|
||||||
|
|
@ -27,9 +28,10 @@ const SideBarButtonsComponent = ({
|
||||||
pathname === item.href
|
pathname === item.href
|
||||||
? "border border-border bg-muted hover:bg-muted"
|
? "border border-border bg-muted hover:bg-muted"
|
||||||
: "border border-transparent hover:border-border hover:bg-transparent",
|
: "border border-transparent hover:border-border hover:bg-transparent",
|
||||||
"w-full justify-start gap-2",
|
"w-full justify-start gap-3",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
{item.icon}
|
||||||
{item.title}
|
{item.title}
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue