Skip to content

Commit 2fd8763

Browse files
committed
fix: add amountMax field to fungible form
1 parent e474260 commit 2fd8763

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

libs/web/role/ui/src/lib/role-condition-ui-update-form-fungible.tsx

+15-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function RoleConditionUiUpdateFormFungible({
1616
const form = useForm<UserUpdateRoleConditionInput>({
1717
initialValues: {
1818
amount: item.amount ?? '',
19+
amountMax: item.amountMax ?? '',
1920
},
2021
})
2122

@@ -26,7 +27,20 @@ export function RoleConditionUiUpdateFormFungible({
2627
})}
2728
>
2829
<UiStack>
29-
<TextInput label="Amount" type="number" min={0} step={1} {...form.getInputProps('amount')} />
30+
<TextInput
31+
label="Amount (Min)"
32+
description="Minimal amount of tokens to match"
33+
step="any"
34+
min="0"
35+
{...form.getInputProps('amount')}
36+
/>
37+
<TextInput
38+
label="Amount (Max)"
39+
description="Maximum amount of tokens to match"
40+
step="any"
41+
min="0"
42+
{...form.getInputProps('amountMax')}
43+
/>
3044
<Group justify="right">
3145
{children}
3246
<Button type="submit">Save</Button>

0 commit comments

Comments
 (0)