From 7efeb08bb7b5a7cf7081fa1135121440663003ed Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 20 Feb 2022 15:18:14 +0100 Subject: [PATCH] Return buttons now close the subpanel in mobile --- src/components/Button.tsx | 3 +++ src/components/PanelComponents/ReturnButton.tsx | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 9f87826..0eafcfb 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,4 +1,5 @@ import Link from "next/link"; +import { MouseEventHandler } from "react"; type ButtonProps = { className?: string; @@ -6,11 +7,13 @@ type ButtonProps = { children: React.ReactChild | React.ReactChild[]; active?: boolean; locale?: string; + onClick?: MouseEventHandler; }; export default function Button(props: ButtonProps): JSX.Element { const button = (
+ );