fix(toast): remove invalid translation hook helper
This commit is contained in:
@@ -353,7 +353,7 @@ export function showDeleteFailedToast(t: ToastTranslations) {
|
|||||||
toast.error(t('dashboard.deleteFailed'));
|
toast.error(t('dashboard.deleteFailed'));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getToastTranslations() {
|
export function useToastTranslations() {
|
||||||
const t = useTranslations('toasts');
|
const t = useTranslations('toasts');
|
||||||
return t as ToastTranslations;
|
return t as ToastTranslations;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user