Fix: design and few function

This commit is contained in:
2025-11-27 18:13:06 +05:30
parent 7460157b46
commit c1d0519c09
25 changed files with 1446 additions and 395 deletions

View File

@@ -224,7 +224,7 @@ export default function SetTransactionLimit() {
};
return (
<Paper shadow="sm" radius="md" p="md" withBorder h={400}>
<Paper shadow="sm" radius="md" p="md" withBorder h={500}>
<Title order={3} mb="sm">
Set Transaction Limit
</Title>
@@ -237,9 +237,13 @@ export default function SetTransactionLimit() {
value={limit}
onChange={(e) => {
const val = e.currentTarget.value;
// Only allow digits
// Allow only digits AND max value 500000
if (/^\d*$/.test(val)) {
setLimit(val);
const num = Number(val);
if (num <= 500000) {
setLimit(val);
}
}
}}
leftSection={icon}
@@ -247,6 +251,7 @@ export default function SetTransactionLimit() {
mb="sm"
readOnly={step !== "form"}
/>
</Group>
{dailyLimit !== null ? (
<Text size="xs" c="green">