diff --git a/src/components/PBSCDateTimePicker.js b/src/components/PBSCDateTimePicker.js index b8d4292..7ef1224 100644 --- a/src/components/PBSCDateTimePicker.js +++ b/src/components/PBSCDateTimePicker.js @@ -44,6 +44,7 @@ const PBSCDateTimePicker = (props) => { helperTextStyle, hasHelperTextIcon = false, helperTextCustomIcon, // any svg icon component to show before helper text or error text goes here + pickerTheme = 'light', // 'light' or 'dark' } = props; const [selectingDate, setSelectingDate] = useState(value ? value : undefined); @@ -176,6 +177,7 @@ const PBSCDateTimePicker = (props) => { is24hourSource={is24hour} date={selectingDate ? selectingDate : new Date()} onDateChange={handleDateChange} + theme={pickerTheme} />