diff --git a/components/InactivityNoticeCard.tsx b/components/InactivityNoticeCard.tsx
index 5d2c04b..91ca9c2 100644
--- a/components/InactivityNoticeCard.tsx
+++ b/components/InactivityNoticeCard.tsx
@@ -51,7 +51,6 @@ export default function (
});
setLoading(false);
- props.port?.postMessage(`inactivity_${props.id}`);
}
const Approved = () => (
@@ -66,6 +65,18 @@ export default function (
);
+ const Pending = () => (
+
+ );
+
return (
@@ -94,23 +105,31 @@ export default function (
) : null}
- {Object.keys(props.decisions as { [k: string]: boolean }).length ? (
-
- Decisions
-
- {Object.entries(
- props.decisions as { [k: string]: boolean },
- ).map(([dept, accepted]) => (
+
+ Decisions
+
+ {props.departments.map((d) => {
+ const dept = d as "ET" | "DM" | "FM" | "WM";
+
+ return (
- {dept}:
- {accepted ? : }
+ {d}:
+ {typeof props.decisions[dept] === "boolean" ? (
+ props.decisions[dept] ? (
+
+ ) : (
+
+ )
+ ) : (
+
+ )}
- ))}
-
-
- ) : null}
+ );
+ })}
+
+