diff --git a/src/components/MainLayout/FashionListBox/SearchBox.tsx b/src/components/MainLayout/FashionListBox/SearchBox.tsx index 2682bee..ea43772 100644 --- a/src/components/MainLayout/FashionListBox/SearchBox.tsx +++ b/src/components/MainLayout/FashionListBox/SearchBox.tsx @@ -86,7 +86,7 @@ const PrettoSlider = styled(Slider)({ }); export default function SearchBox() { - const [isLoading, setIsLoading] = useState(true); + const [isLoading, setIsLoading] = useState(false); const weatherData = useRecoilValue(weatherDataState); @@ -235,7 +235,6 @@ export default function SearchBox() { }; const animationData = getAnimationData(); - // const animationData = require('../../assets/lotties/allRain.json'); //lottie const element = useRef(null); diff --git a/src/components/MyLayout/MyPostBox.tsx b/src/components/MyLayout/MyPostBox.tsx index ce14176..0fe326c 100644 --- a/src/components/MyLayout/MyPostBox.tsx +++ b/src/components/MyLayout/MyPostBox.tsx @@ -6,27 +6,27 @@ import { useRecoilValue } from 'recoil'; import { userIdState } from '../../utils/Recoil'; import { UserPostListType } from '../../utils/types'; -const style = { - position: 'absolute', - top: '50%', - left: '50%', - transform: 'translate(-50%, -50%)', - height: 600, - width: 400, - bgcolor: '#FFF', - borderRadius: '25px', - boxShadow: 24, - p: 2, -}; +// const style = { +// position: 'absolute', +// top: '50%', +// left: '50%', +// transform: 'translate(-50%, -50%)', +// height: 600, +// width: 400, +// bgcolor: '#FFF', +// borderRadius: '25px', +// boxShadow: 24, +// p: 2, +// }; export default function MyPostBox() { const userId = useRecoilValue(userIdState); const [postList, setPostList] = useState([]); - const [singleId, setSingleId] = useState(''); - const [openDetail, setOpenDetail] = useState(false); + // const [singleId, setSingleId] = useState(''); + // const [openDetail, setOpenDetail] = useState(false); - const handleOpenDetail = () => setOpenDetail(true); - const handleCloseDetail = () => setOpenDetail(false); + // const handleOpenDetail = () => setOpenDetail(true); + // const handleCloseDetail = () => setOpenDetail(false); const userPostListAPI = async () => { try { diff --git a/src/components/MyLayout/UserInfoBox.tsx b/src/components/MyLayout/UserInfoBox.tsx index 2af9d02..1daffdb 100644 --- a/src/components/MyLayout/UserInfoBox.tsx +++ b/src/components/MyLayout/UserInfoBox.tsx @@ -1,7 +1,17 @@ -import AccessibilityIcon from '@mui/icons-material/Accessibility'; -import { Avatar, Box, Typography } from "@mui/material"; +import { Avatar, Box, Button, Typography } from "@mui/material"; +import { useState } from 'react'; export default function UserInfoBox() { + const [follow, setFollow] = useState(false); + + const handleFollowChange = () => { + if (follow) { + setFollow(false); + } else { + setFollow(true); + } + } + return ( {/* 왼쪽 컬럼: Avatar와 아래의 텍스트 */} @@ -11,23 +21,36 @@ export default function UserInfoBox() { alt="User's avatar" sx={{ width: 100, height: 100, ml: -10 }} /> - + 나만의 패션을 찾고 있는 난 미래의 패셔니스타. - - - 163 cm - - g.3un + + g.3un + + - + 게시글 - 2 - 게시글 - 20 + 2 + + 팔로워 + 10 + + 팔로잉 + 20 diff --git a/src/components/common/Loading.tsx b/src/components/common/Loading.tsx deleted file mode 100644 index 281fc4f..0000000 --- a/src/components/common/Loading.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { - Backdrop, - CircularProgress -} from '@mui/material'; -import React from 'react'; - -type LoadingProps = { - state: boolean; -} - -export default function Loading({state}: LoadingProps){ - const [open, setOpen] = React.useState(state); - const handleOpen = () => { - setOpen(true); - }; - - return( - theme.zIndex.drawer + 1 }} - open={open} - > - - - ) -} \ No newline at end of file