Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More fixes lol
  • Loading branch information
regalijan committed Mar 16, 2024
1 parent f648fe8 commit bb62d3f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions components/GameAppealCard.tsx
Expand Up @@ -6,7 +6,6 @@ import {
CardFooter,
CardHeader,
Heading,
Input,
ListItem,
Modal,
ModalBody,
Expand Down Expand Up @@ -123,24 +122,14 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
min={-10}
onChange={(_, n) => setPercentage(n)}
precision={0}
w="100%"
>
<NumberInputField />
<NumberInputStepper>
<NumberIncrementStepper />
<NumberDecrementStepper />
</NumberInputStepper>
</NumberInput>
<Input
onBeforeInput={(e) => {
const value = (e.target as EventTarget & { value: string })
.value;

if (value !== "-" && value && !value.match(/^-?\d{0,3}$/))
e.preventDefault();
}}
onChange={(e) => setPercentage(parseInt(e.target.value))}
placeholder="Reduction factor"
/>
<Text alignSelf="start">Stat multiplication factors:</Text>
<UnorderedList alignSelf="start">
<ListItem>
Expand Down

0 comments on commit bb62d3f

Please sign in to comment.