Files
threadcount-community/app/my/(app)/not-found.tsx
T
ThreadCount 96d5c10537 ThreadCount Community edition
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 49da3a4 on 2026-09-13. Licensed under the Functional Source License (FSL-1.1-ALv2).
2026-09-13 11:38:24 +10:00

29 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { MBar, MBody, MEmpty, MRule, MTop } from "@/components/m";
/* What a staff screen shows when there is nothing behind it.
*
* Nine routes under /my call notFound(): a kit check between rounds, the waitlist with nothing
* offered, the ward and desk screens for somebody without that role, an order that isn't theirs.
* Without this file every one of them rendered the WEBSITE's 404 — marketing nav, "Open the demo",
* a footer — inside the app, over the top of the tab bar, with the hardware back button as the
* only way home. Seen on a Pixel 8 Pro on 2026-09-12 by opening Kit check with no check open.
*
* Next renders the nearest not-found.tsx, so this one stays inside the signed-in layout: same
* chrome, same provider, and a bar that goes home.
*/
export default function StaffNotFound() {
return (
<>
<MTop title="Nothing here" back />
<MRule />
<MBody>
<MEmpty
title="Nothing to show right now"
sub="Theres no screen behind that link at the moment — a kit check that isnt open, a list with nothing on it, or something that isnt yours to see. Nothing on your record has changed."
/>
</MBody>
<MBar label="Back to home" href="/my" />
</>
);
}