Feat/editable fields update (#743)
* Removed console log * Used current scope as default parent scope for fields * Finished editable fields on people show page * Added stories * Console log * Lint
This commit is contained in:
@ -48,7 +48,7 @@ export const DatePickerContainer = ({ children }: DatePickerContainerProps) => {
|
||||
};
|
||||
|
||||
type OwnProps = {
|
||||
value: Date;
|
||||
value: Date | null | undefined;
|
||||
onChange: (newDate: Date) => void;
|
||||
};
|
||||
|
||||
@ -56,7 +56,7 @@ export function InplaceInputDate({ onChange, value }: OwnProps) {
|
||||
return (
|
||||
<InplaceInputContainer>
|
||||
<DatePicker
|
||||
date={value}
|
||||
date={value ?? new Date()}
|
||||
onChangeHandler={onChange}
|
||||
customInput={<DateDisplay />}
|
||||
customCalendarContainer={DatePickerContainer}
|
||||
|
||||
Reference in New Issue
Block a user