mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
add the SelectButtonTitle prop to the DateTimePicker
This commit is contained in:
parent
412533434c
commit
6c8b34f2fd
@ -460,6 +460,7 @@
|
||||
"app.utils.select-filter": "Select filter",
|
||||
"app.utils.unpublish": "Unpublish",
|
||||
"clearLabel": "Clear",
|
||||
"selectButtonTitle": "Select",
|
||||
"coming.soon": "This content is currently under construction and will be back in a few weeks!",
|
||||
"component.Input.error.validation.integer": "The value must be an integer",
|
||||
"components.AutoReloadBlocker.description": "Run Strapi with one of the following commands:",
|
||||
|
||||
@ -55,6 +55,7 @@ const Inputs = ({ label, onChange, options, type, value }) => {
|
||||
onClear={() => onChange(null)}
|
||||
value={value ? new Date(value) : null}
|
||||
selectedDateLabel={(formattedDate) => `Date picker, current is ${formattedDate}`}
|
||||
selectButtonTitle={formatMessage({ id: 'selectButtonTitle', defaultMessage: 'Select' })}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -210,6 +210,7 @@ const GenericInput = ({
|
||||
required={required}
|
||||
value={value && new Date(value)}
|
||||
selectedDateLabel={(formattedDate) => `Date picker, current is ${formattedDate}`}
|
||||
selectButtonTitle={formatMessage({ id: 'selectButtonTitle', defaultMessage: 'Select' })}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -21,6 +21,7 @@ const FilterValueInput = ({ label, onChange, options, type, value }) => {
|
||||
onClear={() => onChange('')}
|
||||
value={value ? new Date(value) : null}
|
||||
selectedDateLabel={(formattedDate) => `Date picker, current is ${formattedDate}`}
|
||||
selectButtonTitle={formatMessage({ id: 'selectButtonTitle', defaultMessage: 'Select' })}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user