More translations for columns

(cherry picked from commit aee8579d1823b7dfb94c0055fe33b5fb5a7fbf17)

Closes #3932
This commit is contained in:
Bogdan 2023-07-29 04:39:06 +03:00
parent 7406e0e3b7
commit 2cc4d639e9
22 changed files with 184 additions and 177 deletions

View file

@ -61,7 +61,7 @@ class SelectInput extends Component {
value={key}
{...otherOptionProps}
>
{optionValue}
{typeof optionValue === 'function' ? optionValue() : optionValue}
</option>
);
})
@ -75,7 +75,7 @@ SelectInput.propTypes = {
className: PropTypes.string,
disabledClassName: PropTypes.string,
name: PropTypes.string.isRequired,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func]).isRequired,
values: PropTypes.arrayOf(PropTypes.object).isRequired,
isDisabled: PropTypes.bool,
hasError: PropTypes.bool,