Skip to content

Commit

Permalink
feat: avatar's background color will be random. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
estd20xx committed Oct 7, 2023
1 parent 5e6744f commit c0b8a02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/Dashboard/DashboardSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ const DashboardSidebar: React.FC = () => {
/>
</div>
) : (
<>
<Avatar name={user ? user?.firstName + " " + user?.lastName : ""} size='40' round="50%" className=' flex h-10 w-10 items-center justify-center rounded-full font-semibold text-white' />
</>
<Avatar name={user ? user?.firstName + " " + user?.lastName : ""} size='40' round="50%" className=' flex h-10 w-10 items-center justify-center rounded-full font-semibold text-white' />
)}
<p className="truncate">
{user?.firstName} {user?.lastName}
Expand Down

0 comments on commit c0b8a02

Please sign in to comment.