web: fix router types

This commit is contained in:
Abdullah Atta
2023-12-04 11:35:42 +05:00
committed by Abdullah Atta
parent ff33ced879
commit e11fea58f6
2 changed files with 6 additions and 2 deletions

View File

@@ -102,7 +102,11 @@ function Header(props: RouteContainerProps) {
);
return (
<Flex mx={2} sx={{ alignItems: "center", justifyContent: "space-between" }}>
<Flex
className="route-container-header"
mx={2}
sx={{ alignItems: "center", justifyContent: "space-between" }}
>
<Flex py={1} sx={{ alignItems: "center", justifyContent: "center" }}>
{buttons?.back ? (
<ArrowLeft

View File

@@ -36,7 +36,7 @@ type RouteResult = {
key: string;
type: "notes" | "notebooks" | "reminders" | "trash" | "tags";
title?: string | (() => Promise<string | undefined>);
component: React.ReactNode;
component: React.FunctionComponent;
props?: any;
buttons?: RouteContainerButtons;
};