Fix various components
This commit is contained in:
@ -94,11 +94,13 @@ export default function (
|
||||
</Text>
|
||||
</Box>
|
||||
) : null}
|
||||
{props.decisions ? (
|
||||
{Object.keys(props.decisions as { [k: string]: boolean }).length ? (
|
||||
<Box>
|
||||
<Heading size="xs">Decisions</Heading>
|
||||
<UnorderedList>
|
||||
{Object.entries(props.decisions).map(([dept, accepted]) => (
|
||||
{Object.entries(
|
||||
props.decisions as { [k: string]: boolean },
|
||||
).map(([dept, accepted]) => (
|
||||
<ListItem>
|
||||
<Stack alignItems="center" direction="row">
|
||||
<Text>{dept}: </Text>
|
||||
@ -111,7 +113,19 @@ export default function (
|
||||
) : null}
|
||||
</Stack>
|
||||
</CardBody>
|
||||
<CardFooter display={props.open ? undefined : "none"} pb="4px">
|
||||
<CardFooter
|
||||
display={
|
||||
props.departments.length !==
|
||||
Object.values(
|
||||
props.decisions as {
|
||||
[k: string]: boolean;
|
||||
},
|
||||
).length
|
||||
? undefined
|
||||
: "none"
|
||||
}
|
||||
pb="4px"
|
||||
>
|
||||
<Box>
|
||||
<Button
|
||||
colorScheme="red"
|
||||
|
Reference in New Issue
Block a user