diff --git a/src/pages/FriendListPage.tsx b/src/pages/FriendListPage.tsx index 1a68d09..a70d14e 100644 --- a/src/pages/FriendListPage.tsx +++ b/src/pages/FriendListPage.tsx @@ -1,3 +1,12 @@ +import { + Box, + Card, + CardContent, + Container, + Grid, + Typography, + Button, +} from '@mui/material' import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import api from '../lib/api' @@ -26,26 +35,51 @@ export default function FriendListPage() { }, []) return ( -
-

친구 목록

- - - {friends.length === 0 ? ( -

친구가 없습니다.

- ) : ( - - )} + + + 친구 목록 + + + {friends.map(friend => ( + + + + {friend.email} + + + + + + + ))} + + setShowDialog(true)} + sx={{ + height: '100%', + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + cursor: 'pointer', + }} + > + + + + 친구 추가 + + + + + {showDialog && setShowDialog(false)} />} -
+ ) }