Skip to content

Commit 4e52220

Browse files
committed
chore: code refactoring
1 parent d5c5464 commit 4e52220

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Shared/Components/DatePicker/DayPickerRangeController.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ export const DatePickerRangeController = ({
5353
<div
5454
className="flex left top"
5555
style={{
56-
...styles.PresetDateRangePicker_panel,
56+
...styles.PresetDateRangePickerPanel,
5757
...DayPickerCalendarInfoHorizontal,
5858
...{
59-
PresetDateRangePicker_panel: {
59+
PresetDateRangePickerPanel: {
6060
padding: '0px',
6161
width: '200px',
6262
height: '100%',
6363
},
64-
...styles.DayPicker__horizontal,
64+
...styles.DayPickerHorizontal,
6565
},
6666
}}
6767
>
@@ -103,12 +103,12 @@ export const DatePickerRangeController = ({
103103
startDate.isSame(calendar.startDate, 'day') &&
104104
endDate.isSame(calendar.endDate, 'day')
105105
let buttonStyles = {
106-
...styles.PresetDateRangePicker_button,
106+
...styles.PresetDateRangePickerButton,
107107
}
108108
if (isSelected) {
109109
buttonStyles = {
110110
...buttonStyles,
111-
...styles.PresetDateRangePicker_button__selected,
111+
...styles.PresetDateRangePickerButtonSelected,
112112
}
113113
}
114114
return (

src/Shared/Components/DatePicker/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ export const DATE_PICKER_IDS = {
149149
}
150150

151151
export const styles = {
152-
PresetDateRangePicker_panel: {
152+
PresetDateRangePickerPanel: {
153153
padding: '0px',
154154
width: '200px',
155155
height: '100%',
156156
},
157-
PresetDateRangePicker_button: {
157+
PresetDateRangePickerButton: {
158158
width: '188px',
159159
background: 'var(--transparent)',
160160
border: 'none',
@@ -169,10 +169,10 @@ export const styles = {
169169
outline: 0,
170170
},
171171
},
172-
DayPicker__horizontal: {
172+
DayPickerHorizontal: {
173173
borderRadius: '4px',
174174
},
175-
PresetDateRangePicker_button__selected: {
175+
PresetDateRangePickerButtonSelected: {
176176
color: 'var(--B500)',
177177
fontWeight: 600,
178178
background: 'var(--B100)',

0 commit comments

Comments
 (0)