add log for sign in, sign out, change password, remove upload file
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
||||
} from '@phosphor-icons/react';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { createLink, Link, useNavigate } from '@tanstack/react-router';
|
||||
import i18next from 'i18next';
|
||||
import { toast } from 'sonner';
|
||||
import { useAuth } from '../auth/auth-provider';
|
||||
import AvatarUser from '../avatar/AvatarUser';
|
||||
@@ -49,9 +48,14 @@ const NavUser = () => {
|
||||
});
|
||||
},
|
||||
onError: (ctx) => {
|
||||
toast.error(i18next.t(`backend_${ctx.error.code}` as any), {
|
||||
richColors: true,
|
||||
});
|
||||
toast.error(
|
||||
(
|
||||
m[`backend_${ctx.error.code}` as keyof typeof m] as () => string
|
||||
)(),
|
||||
{
|
||||
richColors: true,
|
||||
},
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user