mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: fix router types
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user