feat(client): profile improvements
Some checks failed
Client CMS Check Build (NixCN CMS) TeamCity build failed
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-29 22:17:16 +08:00
parent 5da6e9ce25
commit b70095c99e
21 changed files with 1114 additions and 83 deletions

View File

@@ -1,6 +1,6 @@
import { postAuthExchangeMutation } from "@/client/@tanstack/react-query.gen";
import { useMutation } from "@tanstack/react-query";
import { toast } from "sonner";
import { useMutation } from '@tanstack/react-query';
import { toast } from 'sonner';
import { postAuthExchangeMutation } from '@/client/@tanstack/react-query.gen';
export function useExchangeToken() {
return useMutation({
@@ -10,7 +10,7 @@ export function useExchangeToken() {
},
onError: (error) => {
console.error(error);
toast("An error occurred while exchanging the token. Please login manually.");
}
})
toast('An error occurred while exchanging the token. Please login manually.');
},
});
}