File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/pages/ticketholderlist/components/FilterBottomSheet Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ const FilterBottomSheet = ({
32
32
filterList . scheduleNumber
33
33
) ;
34
34
35
+ const initList = filterList ;
36
+
35
37
const handleWrapperClick = ( ) => {
36
38
onClickOutside ( ) ;
37
39
} ;
@@ -77,6 +79,12 @@ const FilterBottomSheet = ({
77
79
setCheckedStatusList ( [ ] ) ;
78
80
} ;
79
81
82
+ const isAllEmpty =
83
+ initList . scheduleNumber . length === 0 &&
84
+ initList . bookingStatus . length === 0 &&
85
+ checkedStatusList . length === 0 &&
86
+ checkedScheduleList . length === 0 ;
87
+
80
88
return (
81
89
< S . FilterBottomSheetWrapper $isOpen = { isOpen } onClick = { handleWrapperClick } >
82
90
< BottomSheet isOpen = { isOpen } >
@@ -118,8 +126,11 @@ const FilterBottomSheet = ({
118
126
) ) }
119
127
</ S . CheckBoxContainer >
120
128
< Spacing marginBottom = "3.2" />
121
- { /* TODO : 선택된 내역 없을 때 버튼 비활성화 하기 */ }
122
- < Button onClick = { handleCilckBtn } > 적용하기</ Button >
129
+ { isAllEmpty ? (
130
+ < Button variant = "gray" > 적용하기</ Button >
131
+ ) : (
132
+ < Button onClick = { handleCilckBtn } > 적용하기</ Button >
133
+ ) }
123
134
</ BottomSheet >
124
135
</ S . FilterBottomSheetWrapper >
125
136
) ;
You can’t perform that action at this time.
0 commit comments