chore: unified mui compoent entry to ui file

This commit is contained in:
QiShaoXuan
2023-01-30 14:59:32 +08:00
parent 5c8041a8d4
commit 980786c821
12 changed files with 26 additions and 20 deletions
@@ -4,7 +4,7 @@ import { Modal, ModalWrapper, ModalCloseButton } from '@/ui/modal';
import { Button } from '@/ui/button';
import Input from '@/ui/input';
import { useState } from 'react';
import { Avatar } from '@mui/material';
import { MuiAvatar } from '@/ui/mui';
import useMembers from '@/hooks/use-members';
import { User } from '@affine/datacenter';
import { useTranslation } from '@affine/i18n';
@@ -102,7 +102,7 @@ export const InviteMemberModal = ({
) : (
<Member>
{userData?.avatar ? (
<Avatar src={userData?.avatar}></Avatar>
<MuiAvatar src={userData?.avatar}></MuiAvatar>
) : (
<MemberIcon>
<EmailIcon></EmailIcon>