Trial self deletion for item cards
This commit is contained in:
parent
722a791000
commit
8b1e44fa91
@ -73,11 +73,11 @@ export default function (props: AppealCardProps) {
|
||||
|
||||
onClose();
|
||||
setLoading(false);
|
||||
location.reload();
|
||||
document.getElementById(`appeal_${props.id}`)?.remove();
|
||||
}
|
||||
|
||||
return (
|
||||
<Card id={`appeal_${props.user.id}`} key={props.id} w="100%">
|
||||
<Card id={`appeal_${props.id}`} key={props.id} w="100%">
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
|
@ -57,13 +57,19 @@ export default function (props: GameAppealProps) {
|
||||
);
|
||||
|
||||
setLoading(false);
|
||||
location.reload();
|
||||
document
|
||||
.getElementById(`gma_${props.roblox_id}${props.created_at}`)
|
||||
?.remove();
|
||||
}
|
||||
|
||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||
|
||||
return (
|
||||
<Card key={props.roblox_id} w="100%">
|
||||
<Card
|
||||
id={`gma_${props.roblox_id}${props.created_at}`}
|
||||
key={props.roblox_id}
|
||||
w="100%"
|
||||
>
|
||||
<CardHeader>
|
||||
<Heading size="md">Game Ban Appeal for {props.roblox_username}</Heading>
|
||||
<Text fontSize="xs">ID: {props.roblox_id}</Text>
|
||||
|
Loading…
x
Reference in New Issue
Block a user