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();
|
onClose();
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
location.reload();
|
document.getElementById(`appeal_${props.id}`)?.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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}>
|
<Modal isOpen={isOpen} onClose={onClose}>
|
||||||
<ModalOverlay />
|
<ModalOverlay />
|
||||||
<ModalContent>
|
<ModalContent>
|
||||||
|
@ -57,13 +57,19 @@ export default function (props: GameAppealProps) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
location.reload();
|
document
|
||||||
|
.getElementById(`gma_${props.roblox_id}${props.created_at}`)
|
||||||
|
?.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card key={props.roblox_id} w="100%">
|
<Card
|
||||||
|
id={`gma_${props.roblox_id}${props.created_at}`}
|
||||||
|
key={props.roblox_id}
|
||||||
|
w="100%"
|
||||||
|
>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<Heading size="md">Game Ban Appeal for {props.roblox_username}</Heading>
|
<Heading size="md">Game Ban Appeal for {props.roblox_username}</Heading>
|
||||||
<Text fontSize="xs">ID: {props.roblox_id}</Text>
|
<Text fontSize="xs">ID: {props.roblox_id}</Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user