Display hiatus status on card
This commit is contained in:
parent
4ddf797cc2
commit
908c8b74a4
@ -15,7 +15,9 @@ import {
|
|||||||
} from "@chakra-ui/react";
|
} from "@chakra-ui/react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
export default function (props: InactivityNoticeProps & { port?: MessagePort }) {
|
export default function (
|
||||||
|
props: InactivityNoticeProps & { port?: MessagePort },
|
||||||
|
) {
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
||||||
@ -84,6 +86,12 @@ export default function (props: InactivityNoticeProps & { port?: MessagePort })
|
|||||||
<Heading size="xs">End Date</Heading>
|
<Heading size="xs">End Date</Heading>
|
||||||
<Text>{new Date(props.end).toLocaleDateString()}</Text>
|
<Text>{new Date(props.end).toLocaleDateString()}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
{typeof props.hiatus === "boolean" ? (
|
||||||
|
<Box>
|
||||||
|
<Heading size="xs">Notice Type</Heading>
|
||||||
|
<Text>{props.hiatus ? "Hiatus" : "Inactivity"}</Text>
|
||||||
|
</Box>
|
||||||
|
) : null}
|
||||||
{props.decisions ? (
|
{props.decisions ? (
|
||||||
<Box>
|
<Box>
|
||||||
<Heading size="xs">Decisions</Heading>
|
<Heading size="xs">Decisions</Heading>
|
||||||
|
1
index.d.ts
vendored
1
index.d.ts
vendored
@ -43,6 +43,7 @@ declare global {
|
|||||||
};
|
};
|
||||||
departments: string[];
|
departments: string[];
|
||||||
end: string;
|
end: string;
|
||||||
|
hiatus?: boolean;
|
||||||
id: string;
|
id: string;
|
||||||
open: boolean;
|
open: boolean;
|
||||||
reason: string;
|
reason: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user