From c7e68c254aa93778b8201227d6db1ac57e081e81 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 3 Apr 2024 15:31:28 -0300 Subject: wip #8655: unauthorized not documented --- .../src/paths/instance/products/list/index.tsx | 6 +++++- .../src/paths/instance/products/update/index.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/paths/instance/products') diff --git a/packages/merchant-backoffice-ui/src/paths/instance/products/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/products/list/index.tsx index eb38f25d9..73c221662 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/products/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/products/list/index.tsx @@ -38,6 +38,7 @@ import { import { Notification } from "../../../../utils/types.js"; import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js"; import { CardTable } from "./Table.js"; +import { LoginPage } from "../../../login/index.js"; interface Props { onCreate: () => void; @@ -65,8 +66,11 @@ export default function ProductList({ case HttpStatusCode.NotFound: { return ; } + case HttpStatusCode.Unauthorized: { + return + } default: { - assertUnreachable(result.case); + assertUnreachable(result); } } } diff --git a/packages/merchant-backoffice-ui/src/paths/instance/products/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/products/update/index.tsx index 9de632218..08b169610 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/products/update/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/products/update/index.tsx @@ -34,6 +34,7 @@ import { useProductDetails } from "../../../../hooks/product.js"; import { Notification } from "../../../../utils/types.js"; import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js"; import { UpdatePage } from "./UpdatePage.js"; +import { LoginPage } from "../../../login/index.js"; export type Entity = TalerMerchantApi.ProductAddDetail; interface Props { @@ -62,8 +63,11 @@ export default function UpdateProduct({ case HttpStatusCode.NotFound: { return ; } + case HttpStatusCode.Unauthorized: { + return + } default: { - assertUnreachable(result.case); + assertUnreachable(result); } } } -- cgit v1.2.3