diff --git a/components/InactivityNoticeCard.tsx b/components/InactivityNoticeCard.tsx index 31f2853..e88732d 100644 --- a/components/InactivityNoticeCard.tsx +++ b/components/InactivityNoticeCard.tsx @@ -15,7 +15,9 @@ import { } from "@chakra-ui/react"; import { useState } from "react"; -export default function (props: InactivityNoticeProps & { port?: MessagePort }) { +export default function ( + props: InactivityNoticeProps & { port?: MessagePort }, +) { const toast = useToast(); const [loading, setLoading] = useState(false); @@ -84,6 +86,12 @@ export default function (props: InactivityNoticeProps & { port?: MessagePort }) End Date {new Date(props.end).toLocaleDateString()} + {typeof props.hiatus === "boolean" ? ( + + Notice Type + {props.hiatus ? "Hiatus" : "Inactivity"} + + ) : null} {props.decisions ? ( Decisions diff --git a/index.d.ts b/index.d.ts index 5adb20e..7df3e0c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -43,6 +43,7 @@ declare global { }; departments: string[]; end: string; + hiatus?: boolean; id: string; open: boolean; reason: string;