diff options
Diffstat (limited to 'modern/src/attributes/AddAttributeDialog.js')
-rw-r--r-- | modern/src/attributes/AddAttributeDialog.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/attributes/AddAttributeDialog.js b/modern/src/attributes/AddAttributeDialog.js index 3d392fd5..4669ba02 100644 --- a/modern/src/attributes/AddAttributeDialog.js +++ b/modern/src/attributes/AddAttributeDialog.js @@ -4,9 +4,11 @@ import { } from '@material-ui/core'; import { Autocomplete, createFilterOptions } from '@material-ui/lab'; -import t from '../LocalizationProvider'; +import { useTranslation } from '../LocalizationProvider'; const AddAttributeDialog = ({ open, onResult, definitions }) => { + const t = useTranslation(); + const filter = createFilterOptions({ stringify: (option) => option.name, }); |