From bb62d3f43052d173c2dbff4d0c9129d5b5af2b4b Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sat, 16 Mar 2024 02:40:23 -0400 Subject: [PATCH] More fixes lol --- components/GameAppealCard.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/components/GameAppealCard.tsx b/components/GameAppealCard.tsx index b087b57..33d4a98 100644 --- a/components/GameAppealCard.tsx +++ b/components/GameAppealCard.tsx @@ -6,7 +6,6 @@ import { CardFooter, CardHeader, Heading, - Input, ListItem, Modal, ModalBody, @@ -123,6 +122,7 @@ export default function (props: GameAppealProps & { port?: MessagePort }) { min={-10} onChange={(_, n) => setPercentage(n)} precision={0} + w="100%" > @@ -130,17 +130,6 @@ export default function (props: GameAppealProps & { port?: MessagePort }) { - { - 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" - /> Stat multiplication factors: