Skip to content

Commit

Permalink
chore: the Image component has been replaced by the Avatar component
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Jan 10, 2024
1 parent e3a3216 commit 8740679
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/nav/menu/MenuProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { NavLink, useNavigate } from 'react-router-dom';
import {
Avatar,
Box,
Button,
useColorModeValue,
Expand All @@ -10,7 +11,6 @@ import {
MenuItem,
MenuGroup,
MenuDivider,
Image,
} from '@chakra-ui/react';

import { logOut } from '../../../services/firebase/auth';
Expand All @@ -34,11 +34,10 @@ export function MenuProfile({ displayName, photoURL, uid }: MenuType) {
borderRadius='full'
_hover={{ border: `2px solid ${colorBorder}` }}
>
<Image
<Avatar
name={displayName as string}
src={photoURL as string}
w={{ base: '25px', md: '35px' }}
h={{ base: '25px', md: '35px' }}
borderRadius='full'
size={{ base: 'xs', md: 'sm' }}
/>
</MenuButton>
</Button>
Expand Down

1 comment on commit 8740679

@vercel
Copy link

@vercel vercel bot commented on 8740679 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xbu – ./

xbu.vercel.app
xbu-franqsanz.vercel.app
xbu-git-main-franqsanz.vercel.app

Please sign in to comment.