fixed getTrad

This commit is contained in:
ronronscelestes 2021-09-17 17:16:31 +02:00
parent 19c2d20388
commit 0b9cb955fa

View File

@ -56,7 +56,7 @@ const AdvancedSettingsPage = () => {
onSuccess: () => { onSuccess: () => {
notifyStatus( notifyStatus(
formatMessage({ formatMessage({
id: 'Form.advancedSettings.data.loaded', id: getTrad('Form.advancedSettings.data.loaded'),
defaultMessage: 'Advanced settings data has been loaded', defaultMessage: 'Advanced settings data has been loaded',
}) })
); );
@ -64,7 +64,7 @@ const AdvancedSettingsPage = () => {
onError: () => { onError: () => {
toggleNotification({ toggleNotification({
type: 'warning', type: 'warning',
message: { id: 'notification.error', defaultMessage: 'An error occured' }, message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
}); });
}, },
}); });
@ -76,7 +76,7 @@ const AdvancedSettingsPage = () => {
await queryClient.invalidateQueries('advanced'); await queryClient.invalidateQueries('advanced');
toggleNotification({ toggleNotification({
type: 'success', type: 'success',
message: { id: 'notification.success.saved', defaultMessage: 'Saved' }, message: { id: getTrad('notification.success.saved'), defaultMessage: 'Saved' },
}); });
unlockApp(); unlockApp();
@ -84,7 +84,7 @@ const AdvancedSettingsPage = () => {
onError: () => { onError: () => {
toggleNotification({ toggleNotification({
type: 'warning', type: 'warning',
message: { id: 'notification.error', defaultMessage: 'An error occured' }, message: { id: getTrad('notification.error'), defaultMessage: 'An error occured' },
}); });
unlockApp(); unlockApp();
}, },