diff --git a/webui/src/ui/Layout.tsx b/webui/src/ui/Layout.tsx index 05c0971..8f36dfc 100644 --- a/webui/src/ui/Layout.tsx +++ b/webui/src/ui/Layout.tsx @@ -1,11 +1,13 @@ import cn from 'classnames'; -import { Link } from 'expo-router'; +import { Link, useRouter } from 'expo-router'; import { HTMLAttributes, PropsWithChildren } from 'react'; export function LayoutNavigation({ children, className, }: PropsWithChildren & { className?: string }) { + const router = useRouter(); + return (
- - - - +
+ + + + + {router.canGoBack() ? ( + { + event.preventDefault(); + router.back(); + }} + > + ← go back + + ) : null} +
{children}
);