commit 9d0fc80a905e02a0a0b63dd547daac6e7b17fb52
parent 635d710203bd88843ba16bbee7ab43ad02d295ca
Author: Christian Blättler <blatc2@bfh.ch>
Date: Wed, 22 May 2024 21:13:03 +0200
remove unused
Diffstat:
2 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/Routing.tsx b/packages/merchant-backoffice-ui/src/Routing.tsx
@@ -485,28 +485,22 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.token_family_list}
component={TokenFamilyListPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
onCreate={() => {
route(InstancePaths.token_family_new);
}}
onSelect={(slug: string) => {
route(InstancePaths.token_family_update.replace(":slug", slug));
}}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.token_family_update}
component={TokenFamilyUpdatePage}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.token_family_list)}
onConfirm={() => {
route(InstancePaths.token_family_list);
}}
onBack={() => {
route(InstancePaths.token_family_list);
}}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.token_family_new}
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/tokenfamilies/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/tokenfamilies/list/index.tsx
@@ -49,11 +49,8 @@ interface Props {
onLoadError: (e: HttpError<MerchantBackend.ErrorDetail>) => VNode;
}
export default function TokenFamilyList({
- onUnauthorized,
- onLoadError,
onCreate,
onSelect,
- onNotFound,
}: Props): VNode {
const result = useInstanceTokenFamilies();
const [notif, setNotif] = useState<Notification | undefined>(undefined);