Skip to content

Commit 86fe012

Browse files
committed
chore: MyInfo profile 수정시 현재 프로필사진이 기본값으로 나오게 수정
1 parent bc3da4f commit 86fe012

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/ChangeProfileModal/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Button, Text, UploadImage } from 'components';
22
import styled from '@emotion/styled';
33
import useClickAway from '../../hooks/useClickAway';
44

5-
const ChangeProfileModal = ({ onFileChange, onProfileSubmit, onClose }) => {
5+
const ChangeProfileModal = ({ onFileChange, onProfileSubmit, onClose, currentProfile }) => {
66
const ref = useClickAway(() => {
77
onClose && onClose();
88
});
@@ -13,6 +13,7 @@ const ChangeProfileModal = ({ onFileChange, onProfileSubmit, onClose }) => {
1313
프로필을 변경하시겠습니까?
1414
</Text>
1515
<UploadImage
16+
defaultImage={currentProfile}
1617
onChange={onFileChange}
1718
style={{ width: '90%', marginLeft: 'auto', marginRight: 'auto', marginTop: '30px' }}
1819
/>{' '}

src/pages/MyInfoPage/UserProfile.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const UserProfile = () => {
101101
onFileChange={onFileChange}
102102
onProfileSubmit={onProfileSubmit}
103103
onClose={onCloseProfile}
104+
currentProfile={currentUser.image}
104105
/>
105106
)}
106107
</UserProfileWrapper>

0 commit comments

Comments
 (0)