fix(admin): handle error login status (#7646)

Fix unhandled error login status, modify style

https://github.com/user-attachments/assets/0b40807d-e17a-4d23-a168-4894adfa5998
This commit is contained in:
JimmFly
2024-08-13 05:45:01 +00:00
committed by forehalo
parent b214003968
commit 6dea831d8a
9 changed files with 107 additions and 17 deletions
@@ -43,6 +43,7 @@ export function UserDropdown() {
method: 'POST',
})
.then(() => {
toast.success('Logged out successfully');
navigate('/admin/auth');
})
.catch(err => {