diff --git a/example/src/App.tsx b/example/src/App.tsx index 570ec782..86e8a0fd 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -306,6 +306,8 @@ function App() { // animationType="slide" // optional, default is slide on ios/android and none on web // startYear={2000} // optional, default is 1800 // endYear={2100} // optional, default is 2200 + // allowEditing={false} // optional, default is true + // inputEnabled={false} // optional, default is true /> any locale: string | undefined - inputDate?: boolean } function getLabel( @@ -62,7 +61,6 @@ export default function DatePickerModalContentHeader( uppercase, editIcon, calendarIcon, - inputDate, allowEditing, } = props const theme = useTheme() @@ -70,7 +68,7 @@ export default function DatePickerModalContentHeader( const color = useHeaderTextColor() - const isAllowEditing = allowEditing && mode !== 'multiple' && inputDate !== undefined + const isEditingEnabled = allowEditing && mode !== 'multiple' const supportingTextColor = theme.isV3 ? theme.colors.onSurfaceVariant : color @@ -103,7 +101,7 @@ export default function DatePickerModalContentHeader( - {isAllowEditing ? ( + {isEditingEnabled ? (