Skip to content

Commit a188c29

Browse files
committed
✨ Feat: 모달 슬라이드 적용
1 parent 1ccacbc commit a188c29

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/components/DogProfile/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function DogProfile({ dogProfile, isEditBtnVisible = false }: Dog
2020
<S.DogInfoArea>
2121
<S.DogInfoWrapper>
2222
{isEditBtnVisible && (
23-
<S.EditIconWrapper onClick={() => pushModal(<EditDogProfileModal dogId={dogProfile.dogId} />)}>
23+
<S.EditIconWrapper onClick={() => pushModal(<EditDogProfileModal dogId={dogProfile.dogId} />, 'slideLeft')}>
2424
<MdOutlineModeEdit size={20} />
2525
</S.EditIconWrapper>
2626
)}

src/modals/RegisterDogModal/FamilyCodeSection/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default function FamilyCodeSection() {
2424
return
2525
}
2626
const dogProfiles = await fetchFamilyDogsMutation.mutateAsync(familyCode)
27-
if (dogProfiles) pushModal(<CheckDogProfileSection familyCode={familyCode} dogProfiles={dogProfiles} />)
27+
if (dogProfiles)
28+
pushModal(<CheckDogProfileSection familyCode={familyCode} dogProfiles={dogProfiles} />, 'slideLeft')
2829
}
2930
return (
3031
<>

src/pages/FamilyDDangPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function FamilyDDang() {
2222
}, [modalList])
2323

2424
const onClickCodeShare = () => {
25-
pushModal(<ShareCodeModal />)
25+
pushModal(<ShareCodeModal />, 'slideLeft')
2626
}
2727

2828
return (

src/pages/LogPage/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export default function LogPage() {
3232
<Header type={'sm'}>
3333
<S.ProfileImg src='test.svg' alt='프로필 사진' />
3434
<S.DogName>밤톨이 일기</S.DogName>
35-
<S.GraphImage src={GraphIcon} alt='산책 기록 그래프' onClick={() => pushModal(<WalkAnalysisModal />)} />
35+
<S.GraphImage
36+
src={GraphIcon}
37+
alt='산책 기록 그래프'
38+
onClick={() => pushModal(<WalkAnalysisModal />, 'slideLeft')}
39+
/>
3640
</Header>
3741
<S.CalendarWrapper>
3842
<Calendar date={date} setDate={setDate} />

0 commit comments

Comments
 (0)