File tree 2 files changed +7
-4
lines changed
src/components/CDatePicker
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,13 @@ export const Wrapper = styled.div`
149
149
.react-datepicker {
150
150
box-shadow: none !important;
151
151
width: 100%;
152
+ padding: 0 0;
152
153
}
153
154
154
155
.react-datepicker__day.react-datepicker__day {
155
156
line-height: 2.1rem;
156
157
font-size: 0.875rem;
157
- padding: 0 14px !important;
158
+ padding: 0 13px !important;
158
159
}
159
160
}
160
161
` ;
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ const CDatePicker = ({
95
95
} ;
96
96
97
97
const handleOpenSheet = ( ) => {
98
- setIsOpenSheet ( true ) ;
98
+ if ( enabledDatePicker || readonly ) {
99
+ setIsOpenSheet ( true ) ;
100
+ }
99
101
} ;
100
102
101
103
const handleCloseSheetClick = ( ) => {
@@ -176,7 +178,7 @@ const CDatePicker = ({
176
178
</ Wrapper >
177
179
178
180
< CBottomSheet
179
- contentClass = "justify-center items-center"
181
+ contentClass = "justify-center items-center w-full "
180
182
isSticky = { isSticky }
181
183
isModalOpen = { isOpenSheet }
182
184
setIsModalOpen = { setIsOpenSheet }
@@ -210,7 +212,7 @@ const CDatePicker = ({
210
212
< CButton
211
213
variant = "simple"
212
214
color = "blue"
213
- content = "ok "
215
+ content = "Confirm "
214
216
className = "rounded-xl !py-5 !h-[60px]"
215
217
onClick = { handleConfirmSheetClick }
216
218
/>
You can’t perform that action at this time.
0 commit comments