-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from gloddy-dev/feature/274-refactoring-creat…
…e-group-page Feature : 모임 개설 페이지 및 BottomSheet 리팩토링
- Loading branch information
Showing
25 changed files
with
379 additions
and
348 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 12 additions & 17 deletions
29
src/app/(main)/grouping/create/components/CreateHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
'use client'; | ||
import { IconButton } from '@/components/Button'; | ||
import { Header } from '@/components/Header'; | ||
import Image from 'next/image'; | ||
import { useRouter } from 'next/navigation'; | ||
import Link from 'next/link'; | ||
|
||
export default function CreateHeader() { | ||
const router = useRouter(); | ||
return ( | ||
<Header | ||
leftNode={ | ||
<Image | ||
alt="back" | ||
src="/assets/arrow_back.svg" | ||
width={8} | ||
height={30} | ||
onClick={() => { | ||
router.back(); | ||
}} | ||
/> | ||
} | ||
text="모임 개설하기" | ||
/> | ||
<Header className="px-4"> | ||
<Header.Left> | ||
<Link href="/grouping"> | ||
<IconButton size="large"> | ||
<Image src="/icons/24/arrow_back.svg" alt="back" width={24} height={24} /> | ||
</IconButton> | ||
</Link> | ||
<p>모임 개설하기</p> | ||
</Header.Left> | ||
</Header> | ||
); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/app/(main)/grouping/create/components/CreateModal.client.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Spacing } from '@/components/common/Spacing'; | ||
import { Modal } from '@/components/Modal'; | ||
import Image from 'next/image'; | ||
|
||
interface CreateModalProps { | ||
onOkClick: () => void; | ||
onCancelClick: () => void; | ||
} | ||
|
||
export default function CreateModal({ onOkClick, onCancelClick }: CreateModalProps) { | ||
return ( | ||
<Modal variant="warning" onOkClick={onOkClick} onCancelClick={onCancelClick}> | ||
<Spacing size={32} /> | ||
<Image src="/icons/48/warning.svg" width={48} height={48} alt="warning" /> | ||
<Spacing size={12} /> | ||
<p>계속하시겠어요?</p> | ||
<Spacing size={16} /> | ||
</Modal> | ||
); | ||
} |
23 changes: 0 additions & 23 deletions
23
src/app/(main)/grouping/create/components/GroupingModal.client.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.