aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-04 13:26:46 -0300
committerSebastian <sebasjm@gmail.com>2024-04-04 13:26:46 -0300
commit58323fc496d0fe2a34884b289860264ffd1310e8 (patch)
tree1a15e6e1ec2965542761384ae064ecb6a70e8976 /packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
parent50c9721db8f144c4de3da8a8364c8b1c81e9e12d (diff)
downloadwallet-core-58323fc496d0fe2a34884b289860264ffd1310e8.tar.xz
handle not found cases
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
index 5b6564485..bb1ee944b 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
@@ -24,6 +24,7 @@ import { useSessionContext } from "../../../context/session.js";
import { useInstanceDetails } from "../../../hooks/instance.js";
import { LoginPage } from "../../login/index.js";
import { DetailPage } from "./DetailPage.js";
+import { NotFoundPageOrAdminCreate } from "../../notfound/index.js";
interface Props {
onUpdate: () => void;
@@ -50,8 +51,11 @@ export default function Detail({
case HttpStatusCode.Unauthorized: {
return <LoginPage />
}
+ case HttpStatusCode.NotFound: {
+ return <NotFoundPageOrAdminCreate />;
+ }
default: {
- assertUnreachable(result.case)
+ assertUnreachable(result)
}
}
}