Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make appeal card not a fragment
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent b6f0730 commit 2cd2e76
Showing 1 changed file with 35 additions and 37 deletions.
72 changes: 35 additions & 37 deletions components/AppealCard.tsx
Expand Up @@ -22,44 +22,42 @@ export default function (props: AppealCardProps) {
}, [props.createdAt]);

return (
<>
<Card w="100%">
<CardHeader>
<Heading size="md">
Appeal for {props.username}#{props.discriminator}
</Heading>
<Text fontSize="xs">ID: {props.id}</Text>
</CardHeader>
<CardBody>
<Stack divider={<StackDivider />}>
<Box>
<Heading size="xs">Response: Why were you banned?</Heading>
<Text>{props.ban_reason}</Text>
</Box>
<Box>
<Heading size="xs">Response: Why should we unban you?</Heading>
<Text>{props.reason_for_unban}</Text>
</Box>
<Box>
<Heading size="xs">
Response: What have you learned from your mistake?
</Heading>
<Text>{props.learned}</Text>
</Box>
</Stack>
</CardBody>
<CardFooter pb="4px">
<Card w="100%">
<CardHeader>
<Heading size="md">
Appeal for {props.username}#{props.discriminator}
</Heading>
<Text fontSize="xs">ID: {props.id}</Text>
</CardHeader>
<CardBody>
<Stack divider={<StackDivider />}>
<Box>
<Button colorScheme="red">Deny</Button>
<Button colorScheme="blue" ml="8px">
Accept
</Button>
<Heading size="xs">Response: Why were you banned?</Heading>
<Text>{props.ban_reason}</Text>
</Box>
</CardFooter>
<CardFooter py="4px">
<Text fontSize="xs">Submitted at: {dateString}</Text>
</CardFooter>
</Card>
</>
<Box>
<Heading size="xs">Response: Why should we unban you?</Heading>
<Text>{props.reason_for_unban}</Text>
</Box>
<Box>
<Heading size="xs">
Response: What have you learned from your mistake?
</Heading>
<Text>{props.learned}</Text>
</Box>
</Stack>
</CardBody>
<CardFooter pb="4px">
<Box>
<Button colorScheme="red">Deny</Button>
<Button colorScheme="blue" ml="8px">
Accept
</Button>
</Box>
</CardFooter>
<CardFooter py="4px">
<Text fontSize="xs">Submitted at: {dateString}</Text>
</CardFooter>
</Card>
);
}

0 comments on commit 2cd2e76

Please sign in to comment.