require limit to specified (nonzero) for shuffle all

This commit is contained in:
Kendall Garner 2024-09-18 07:31:58 -07:00
parent 4c49e403ab
commit b628b684ae
No known key found for this signature in database
GPG Key ID: 18D2767419676C87

View File

@ -145,7 +145,7 @@ export const ShuffleAllModal = ({
max={500}
min={1}
value={limit}
onChange={(e) => setStore({ limit: e ? Number(e) : 0 })}
onChange={(e) => setStore({ limit: e ? Number(e) : 500 })}
/>
<Group grow>
<NumberInput
@ -208,6 +208,7 @@ export const ShuffleAllModal = ({
<Divider />
<Group grow>
<Button
disabled={!limit}
leftIcon={<RiAddBoxFill size="1rem" />}
type="submit"
variant="default"
@ -216,6 +217,7 @@ export const ShuffleAllModal = ({
Add
</Button>
<Button
disabled={!limit}
leftIcon={<RiAddCircleFill size="1rem" />}
type="submit"
variant="default"
@ -225,6 +227,7 @@ export const ShuffleAllModal = ({
</Button>
</Group>
<Button
disabled={!limit}
leftIcon={<RiPlayFill size="1rem" />}
type="submit"
variant="filled"