Skip to content

Commit d7178e6

Browse files
authored
Merge pull request #20 from BeeInventor/feat/calendar-dark-mode
Feat/calendar dark mode
2 parents 57973b3 + 1042f50 commit d7178e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/DatePicker/DatePicker.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ DefaultDark.parameters = {
5959
default: 'light',
6060
},
6161
};
62+
6263
DefaultDark.args = {
6364
placeholder: 'Time',
6465
mode: 'dark',

src/components/DatePicker/DatePicker.types.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { PopperProps, BoxProps } from '@mui/material';
2-
import { Mode } from 'components/main.types';
1+
import { BoxProps, PopperProps } from '@mui/material';
32
import { Locale } from 'date-fns';
43

54
export interface StyledRootProps {
65
disabled?: boolean;
7-
mode?: Mode;
6+
mode?: 'dark' | 'light';
87
}
98

109
export interface StyledMode {
11-
mode?: Mode;
10+
mode?: 'dark' | 'light';
1211
}
1312

1413
export interface DatePickerProps extends Omit<BoxProps, 'onSelect'> {
@@ -22,7 +21,7 @@ export interface DatePickerProps extends Omit<BoxProps, 'onSelect'> {
2221
limitTo?: Date;
2322
disabled?: boolean;
2423
dateFormat?: string;
25-
mode?: Mode;
24+
mode?: 'dark' | 'light';
2625
onSelect: (
2726
value: Date | undefined | [Date | undefined, Date | undefined],
2827
) => void;

0 commit comments

Comments
 (0)