From 5e6744f0591086b94e9220f371c0f4c5c21f47b7 Mon Sep 17 00:00:00 2001 From: Sushant khadka <87481819+NamelesssNerd@users.noreply.github.com> Date: Sat, 7 Oct 2023 23:32:29 +0545 Subject: [PATCH] feat: avatar's background color will be random. (#31) --- components/Dashboard/DashboardSidebar/index.tsx | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Dashboard/DashboardSidebar/index.tsx b/components/Dashboard/DashboardSidebar/index.tsx index 2d9a370e..5c66b33a 100644 --- a/components/Dashboard/DashboardSidebar/index.tsx +++ b/components/Dashboard/DashboardSidebar/index.tsx @@ -11,7 +11,7 @@ import { import Image from 'next/image' import Link from 'next/link' import { usePathname } from 'next/navigation' -import { Fragment, use, useState } from 'react' +import { Fragment, } from 'react' import { DropdownMenu, @@ -22,6 +22,7 @@ import { useSelectedProject } from '@/hooks/query/project' import { useCurrentUser } from '@/hooks/query/user' import { cn } from '@/lib/utils' import Avatar from "react-avatar" + const routes = [ { name: 'COLLECT', diff --git a/package.json b/package.json index 86858647..ab78e634 100644 --- a/package.json +++ b/package.json @@ -67,4 +67,4 @@ "prettier": "^3.0.3", "prettier-plugin-tailwindcss": "^0.5.3" } -} +} \ No newline at end of file