update ui and remove mock data

This commit is contained in:
2026-09-09 19:50:52 +05:30
parent 5ce580dced
commit bfe4d3d2f2
172 changed files with 4280 additions and 8775 deletions

View File

@@ -87,10 +87,14 @@ export function useLoginForm() {
if (!result.ok) {
setErrors({[result.error.field]: result.error.message});
// The toast carries what the inline message cannot: it is announced,
// it survives a field the user has scrolled past, and it distinguishes
// "we rejected your credentials" from "we never reached the server".
toast({type: 'error', body: result.error.message});
toast({
type: 'error',
body: result.error.message,
isAutoHide: true,
autoHideDuration: 4000,
uniqueID: 'login-error',
collisionBehavior: 'overwrite',
});
setIsSubmitting(false);
return;
}