File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/components/ReviewResult Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import { useEffect } from "react" ;
2+
23import confetti from "canvas-confetti" ;
3- import type { Options as ConfettiOptions } from "canvas-confetti" ;
44
5- import Toast from "../ui/Toast/Toast" ;
65import HomeNavigateConfirmModal from "@/components/HomeNavigateConfirmModal/HomeNavigateConfirmModal" ;
76import styles from "@/components/ReviewResult/ReviewResult.module.scss" ;
87import Button from "@/components/ui/Button/Button" ;
98import IconButton from "@/components/ui/IconButton/IconButton" ;
109import Text from "@/components/ui/Text/Text" ;
10+ import Toast from "@/components/ui/Toast/Toast" ;
1111
1212import { useOverlay } from "@/hooks/common/useOverlay" ;
1313import useToast from "@/hooks/common/useToast" ;
1414
15+ import type { Options as ConfettiOptions } from "canvas-confetti" ;
16+
1517const ReviewResult = ( ) => {
1618 const { isOpen, handleClose, handleOpen } = useOverlay ( ) ;
17- const { isToast, showToast } = useToast ( 1000 ) ;
19+ const { isToast, showToast } = useToast ( 1000 ) ;
1820
1921 const reviewText = `오늘 처음으로 청담커피 앤 토스트에서 주문했어요.. 매장도 깔끔하고 직원들도 친절해요!
2022 음료랑 토스트 세트 시켰는데 가성비가 좋네요… 맛도 좋고 양도 많아요!! 다음에도 또 시켜먹을 거예요.` ;
2123
2224 const handleCopy = ( ) => {
23- navigator . clipboard . writeText ( reviewText ) ;
2425 showToast ( ) ;
2526 } ;
2627
You can’t perform that action at this time.
0 commit comments