Update formatting and improve consistency across configuration and documentation files
- Adjusted formatting in .prettierrc for consistent newline handling. - Enhanced API documentation in BACKEND_PROMPT.md for better readability and structure. - Updated docker-compose.yml to standardize quotes and improve health check commands. - Refactored ESLint configuration for better readability and consistency. - Made minor formatting adjustments in various frontend components for improved user experience and code clarity.
This commit is contained in:
@@ -50,7 +50,7 @@ export default function AddAssetDialog({open, onOpenChange}: Props) {
|
||||
createAsset({
|
||||
name: sanitizeString(form.name),
|
||||
type: form.type.toUpperCase() as 'CASH' | 'INVESTMENT' | 'PROPERTY' | 'VEHICLE' | 'OTHER',
|
||||
value: valueNum,
|
||||
value: valueNum
|
||||
})
|
||||
);
|
||||
onOpenChange(false);
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function AddLiabilityDialog({open, onOpenChange}: Props) {
|
||||
createLiability({
|
||||
name: form.name,
|
||||
type: form.type.toUpperCase() as 'CREDIT_CARD' | 'LOAN' | 'MORTGAGE' | 'OTHER',
|
||||
currentBalance: parseFloat(form.balance) || 0,
|
||||
currentBalance: parseFloat(form.balance) || 0
|
||||
})
|
||||
);
|
||||
onOpenChange(false);
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function EditAssetDialog({open, onOpenChange, asset}: Props) {
|
||||
data: {
|
||||
name: form.name.trim(),
|
||||
type: form.type.toUpperCase() as 'CASH' | 'INVESTMENT' | 'PROPERTY' | 'VEHICLE' | 'OTHER',
|
||||
value: valueNum,
|
||||
value: valueNum
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function EditLiabilityDialog({open, onOpenChange, liability}: Pro
|
||||
data: {
|
||||
name: form.name.trim(),
|
||||
type: form.type.toUpperCase() as 'CREDIT_CARD' | 'LOAN' | 'MORTGAGE' | 'OTHER',
|
||||
currentBalance: balanceNum,
|
||||
currentBalance: balanceNum
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ export default function LoginDialog({open, onOpenChange, onSwitchToSignUp}: Prop
|
||||
const dispatch = useAppDispatch();
|
||||
const [form, setForm] = useState({
|
||||
email: '',
|
||||
password: '',
|
||||
password: ''
|
||||
});
|
||||
const [error, setError] = useState('');
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
@@ -36,7 +36,7 @@ export default function LoginDialog({open, onOpenChange, onSwitchToSignUp}: Prop
|
||||
await dispatch(
|
||||
loginUser({
|
||||
email: form.email,
|
||||
password: form.password,
|
||||
password: form.password
|
||||
})
|
||||
).unwrap();
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function SignUpDialog({open, onOpenChange, onSwitchToLogin}: Prop
|
||||
name: '',
|
||||
email: '',
|
||||
password: '',
|
||||
confirmPassword: '',
|
||||
confirmPassword: ''
|
||||
});
|
||||
const [error, setError] = useState('');
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
@@ -45,7 +45,7 @@ export default function SignUpDialog({open, onOpenChange, onSwitchToLogin}: Prop
|
||||
registerUser({
|
||||
email: form.email,
|
||||
password: form.password,
|
||||
name: form.name,
|
||||
name: form.name
|
||||
})
|
||||
).unwrap();
|
||||
|
||||
@@ -117,9 +117,7 @@ export default function SignUpDialog({open, onOpenChange, onSwitchToLogin}: Prop
|
||||
/>
|
||||
</div>
|
||||
{error && <p className="text-sm text-red-400">{error}</p>}
|
||||
<p className="text-xs text-muted-foreground">
|
||||
By signing up, you agree to our Terms of Service and Privacy Policy.
|
||||
</p>
|
||||
<p className="text-xs text-muted-foreground">By signing up, you agree to our Terms of Service and Privacy Policy.</p>
|
||||
</div>
|
||||
<DialogFooter className="flex-col gap-2 sm:flex-col">
|
||||
<Button type="submit" className="w-full" disabled={isLoading}>
|
||||
@@ -134,4 +132,3 @@ export default function SignUpDialog({open, onOpenChange, onSwitchToLogin}: Prop
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user