@codeleap/mobile 3.23.3 → 3.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -123,6 +123,7 @@ export const DatePickerModal = (props: DatePickerModalProps) => {
|
|
|
123
123
|
style,
|
|
124
124
|
minimumDate,
|
|
125
125
|
maximumDate,
|
|
126
|
+
initialDate,
|
|
126
127
|
footerComponent,
|
|
127
128
|
toggleOnConfirm,
|
|
128
129
|
onConfirm: _onConfirm,
|
|
@@ -220,7 +221,7 @@ export const DatePickerModal = (props: DatePickerModalProps) => {
|
|
|
220
221
|
modal={!isCustomModal}
|
|
221
222
|
open={visible}
|
|
222
223
|
onCancel={toggle}
|
|
223
|
-
date={value ?? new Date()}
|
|
224
|
+
date={value ?? initialDate ?? new Date()}
|
|
224
225
|
onDateChange={(date) => {
|
|
225
226
|
if (commitDate === 'onChange') {
|
|
226
227
|
setValue(date)
|