-
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 #152 from DDD-Community/feature/6.5th-qa
[FEATURE] 6.5차 QA
- Loading branch information
Showing
9 changed files
with
112 additions
and
25 deletions.
There are no files selected for viewing
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
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: 29 additions & 0 deletions
29
src/app/board/[boardId]/decorate/_components/GoBackModal.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,29 @@ | ||
import Modal from '@/components/Modal' | ||
import PolaroidIcon from 'public/icons/modal.svg' | ||
|
||
interface GoBackModalProps { | ||
isOpen: boolean | ||
onClose: () => void | ||
goBack: () => void | ||
} | ||
|
||
const GoBackModal = ({ isOpen, onClose, goBack }: GoBackModalProps) => ( | ||
<Modal isOpen={isOpen} onClose={onClose}> | ||
<Modal.CenterModal icon={<PolaroidIcon />}> | ||
<Modal.Close /> | ||
<Modal.Title>{'꾸민 스티커가\n사라질 수도 있어요!'}</Modal.Title> | ||
<Modal.Content> | ||
{ | ||
'뒤로 가기를 누르면 지금까지 보드에 꾸몄던\n스티커들이 초기화될 수 있어요.' | ||
} | ||
</Modal.Content> | ||
<Modal.CenterConfirmCancel | ||
confirmText="뒤로 가기" | ||
cancelText="계속 꾸미기" | ||
onConfirm={goBack} | ||
/> | ||
</Modal.CenterModal> | ||
</Modal> | ||
) | ||
|
||
export default GoBackModal |
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
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,5 +1,19 @@ | ||
import { StickerMenu } from '@/types' | ||
import { StickerMenu, StickerType } from '@/types' | ||
|
||
export const STICKER_MENU: StickerMenu[] = [0, 1, 2, 3] | ||
|
||
export const GUEST_STICKER_MENU: StickerMenu[] = [1, 2, 3] | ||
|
||
export const STICKERS: Record<StickerMenu, StickerType> = { | ||
0: { | ||
gtm: 'recent', | ||
}, | ||
1: { | ||
gtm: 'doodle', | ||
}, | ||
2: { | ||
gtm: 'analog', | ||
}, | ||
3: { | ||
gtm: 'polabo', | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -13,3 +13,7 @@ export interface StickerStyle { | |
angle: string | ||
file: string | ||
} | ||
|
||
export interface StickerType { | ||
gtm: string | ||
} |