Skip to content

Commit

Permalink
✨ Feat: 모달 슬라이드 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
wonill committed Dec 9, 2024
1 parent 1ccacbc commit a188c29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/DogProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function DogProfile({ dogProfile, isEditBtnVisible = false }: Dog
<S.DogInfoArea>
<S.DogInfoWrapper>
{isEditBtnVisible && (
<S.EditIconWrapper onClick={() => pushModal(<EditDogProfileModal dogId={dogProfile.dogId} />)}>
<S.EditIconWrapper onClick={() => pushModal(<EditDogProfileModal dogId={dogProfile.dogId} />, 'slideLeft')}>
<MdOutlineModeEdit size={20} />
</S.EditIconWrapper>
)}
Expand Down
3 changes: 2 additions & 1 deletion src/modals/RegisterDogModal/FamilyCodeSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default function FamilyCodeSection() {
return
}
const dogProfiles = await fetchFamilyDogsMutation.mutateAsync(familyCode)
if (dogProfiles) pushModal(<CheckDogProfileSection familyCode={familyCode} dogProfiles={dogProfiles} />)
if (dogProfiles)
pushModal(<CheckDogProfileSection familyCode={familyCode} dogProfiles={dogProfiles} />, 'slideLeft')
}
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/FamilyDDangPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function FamilyDDang() {
}, [modalList])

const onClickCodeShare = () => {
pushModal(<ShareCodeModal />)
pushModal(<ShareCodeModal />, 'slideLeft')
}

return (
Expand Down
6 changes: 5 additions & 1 deletion src/pages/LogPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default function LogPage() {
<Header type={'sm'}>
<S.ProfileImg src='test.svg' alt='프로필 사진' />
<S.DogName>밤톨이 일기</S.DogName>
<S.GraphImage src={GraphIcon} alt='산책 기록 그래프' onClick={() => pushModal(<WalkAnalysisModal />)} />
<S.GraphImage
src={GraphIcon}
alt='산책 기록 그래프'
onClick={() => pushModal(<WalkAnalysisModal />, 'slideLeft')}
/>
</Header>
<S.CalendarWrapper>
<Calendar date={date} setDate={setDate} />
Expand Down

0 comments on commit a188c29

Please sign in to comment.