From bb646420a4367174dee20da7a8474d520e897ea1 Mon Sep 17 00:00:00 2001 From: Vladimir Klepov Date: Fri, 7 Jun 2024 16:07:33 +0300 Subject: [PATCH] fix modal close --- src/app/Analysis/AnalysisPanel.tsx | 2 +- src/app/Charts/ChartsPanel.tsx | 2 +- src/app/ui/Modal.module.css | 29 ++++++++++++++++++----------- src/app/ui/Modal.tsx | 12 ++++++++---- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/app/Analysis/AnalysisPanel.tsx b/src/app/Analysis/AnalysisPanel.tsx index ee92259..4233195 100644 --- a/src/app/Analysis/AnalysisPanel.tsx +++ b/src/app/Analysis/AnalysisPanel.tsx @@ -32,7 +32,7 @@ export function AnalysisPanel(props: AnalysisPanelProps) { return ( - +
s.mode !== "order")}> {(s, i) => ( diff --git a/src/app/Charts/ChartsPanel.tsx b/src/app/Charts/ChartsPanel.tsx index 2325b39..591bf7b 100644 --- a/src/app/Charts/ChartsPanel.tsx +++ b/src/app/Charts/ChartsPanel.tsx @@ -24,7 +24,7 @@ export function ChartsPanel(props: ChartsPanelProps) { return ( - + {(config) => ( void; class?: string; + title: string; }) { let root: HTMLDivElement; const close = () => props.close(); return (
- -
+
+ + {props.title} +
+
{props.children}