1- import { StyledText } from '.. /Text/StyledText' ;
2- import theme from '../../ styles/theme' ;
1+ import { StyledText } from '@components /Text/StyledText' ;
2+ import theme from '@ styles/theme' ;
33
4- import BottomSheet from '../BottomSheet' ;
5- import Comment from '../Comment' ;
6- import { BottomSheetProps } from '../BottomSheet/dto' ;
7- import { CommentBottomSheetProps } from './dto' ;
4+ import BottomSheet from '@components/BottomSheet' ;
5+ import Comment from './Comment/index' ;
6+ import type { BottomSheetProps } from '@components/BottomSheet/dto' ;
7+ import type { CommentBottomSheetProps } from './dto' ;
8+ import closeIcon from '@assets/default/modal-close-white.svg' ;
89
910import {
1011 CommentBottomSheetLayout ,
@@ -13,32 +14,32 @@ import {
1314 CommentModalHeader ,
1415 CommentModalLayout ,
1516 CommentModalWrapper ,
16- XButton ,
17+ CloseButton ,
1718} from './styles' ;
1819
1920const CommentBottomSheet : React . FC < CommentBottomSheetProps > = ( {
2021 isBottomSheetOpen,
2122 commentProps,
2223 handleCloseBottomSheet,
2324} ) => {
24- const bottomSheetProps : BottomSheetProps = {
25- isOpenBottomSheet : isBottomSheetOpen ,
26- Component : Comment ,
27- componentProps : commentProps ,
28- onCloseBottomSheet : handleCloseBottomSheet ,
29- } ;
30-
3125 const handleBackgroundClick = ( e : React . MouseEvent < HTMLDivElement > ) => {
3226 e . stopPropagation ( ) ;
3327 if ( e . target === e . currentTarget ) {
3428 handleCloseBottomSheet ( ) ;
3529 }
3630 } ;
3731
38- const handleButtonClick = ( ) => {
32+ const handleCloseButtonClick = ( ) => {
3933 handleCloseBottomSheet ( ) ;
4034 } ;
4135
36+ const bottomSheetProps : BottomSheetProps = {
37+ isOpenBottomSheet : isBottomSheetOpen ,
38+ Component : Comment ,
39+ componentProps : commentProps ,
40+ onCloseBottomSheet : handleCloseBottomSheet ,
41+ } ;
42+
4243 return (
4344 < >
4445 { /* 모바일 & 태블릿 UI */ }
@@ -54,7 +55,9 @@ const CommentBottomSheet: React.FC<CommentBottomSheetProps> = ({
5455 < StyledText $textTheme = { { style : 'heading1-bold' } } color = { theme . colors . white } >
5556 메시지 보내기
5657 </ StyledText >
57- < XButton onClick = { handleButtonClick } />
58+ < CloseButton onClick = { handleCloseButtonClick } >
59+ < img src = { closeIcon } alt = "닫기" />
60+ </ CloseButton >
5861 </ CommentModalHeader >
5962 < CommentModalBox >
6063 < Comment { ...commentProps } isModal = { true } />
0 commit comments