mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 23:28:11 +00:00
implement batch board notification system for schedule changes and updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useMemo, useState } from "react";
|
||||
import { memo, useMemo, useState } from "react";
|
||||
import {
|
||||
Box,
|
||||
Group,
|
||||
@@ -267,7 +267,13 @@ function CapacityDivider({ used, max }: { used: number; max: number | null }) {
|
||||
);
|
||||
}
|
||||
|
||||
export function PriorityTrackingTab({ data, bookings }: Props) {
|
||||
// Memoized: mounted in a keep-mounted Tabs panel, so it re-renders with every
|
||||
// page render; both props keep their identity across unrelated page state
|
||||
// (React Query structural sharing + the page's useMemo'd bookings).
|
||||
export const PriorityTrackingTab = memo(function PriorityTrackingTab({
|
||||
data,
|
||||
bookings,
|
||||
}: Props) {
|
||||
const phase = data.windowPhase;
|
||||
const isPayPhase = phase === "PAYMENT";
|
||||
|
||||
@@ -558,7 +564,7 @@ export function PriorityTrackingTab({ data, bookings }: Props) {
|
||||
) : null}
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
/** Contextual banner describing the current window phase in plain language. */
|
||||
function PhaseBanner({ phase }: { phase: string | null }) {
|
||||
|
||||
Reference in New Issue
Block a user