Fixed issue when translations were getting in the way of the UI rendering
This commit is contained in:
parent
40e81a555f
commit
9fb25fb698
@ -30,6 +30,10 @@ i18n
|
||||
backend: {
|
||||
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
||||
},
|
||||
react: {
|
||||
useSuspense: false,
|
||||
returnNull: false,
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
|
||||
@ -15,8 +15,8 @@ const AddTaskButton: React.FC<AddTaskButtonProps> = ({ taskType, onAdd }) => {
|
||||
const [items, setItems] = React.useState<TaskMetadata[]>([]);
|
||||
const [loading, setLoading] = React.useState(false);
|
||||
|
||||
const { t } = useTranslation(Namespaces.Common);
|
||||
const { t: tTaskType } = useTranslation(Namespaces.TaskTypes);
|
||||
const { t } = useTranslation(Namespaces.Common);
|
||||
|
||||
const toggle = async () => {
|
||||
const next = !open;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user