aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-09-01 00:06:50 +0800
committercrupest <crupest@outlook.com>2023-09-01 00:06:50 +0800
commit4f2c334684e41742edfa7c56cee70468d60fcc56 (patch)
tree00b415bab3c2c4884a8d576aa6e702b9e2d992a6 /FrontEnd
parent9199a57cc86ebc5c0a24f8277cbc8463e8262519 (diff)
downloadtimeline-4f2c334684e41742edfa7c56cee70468d60fcc56.tar.gz
timeline-4f2c334684e41742edfa7c56cee70468d60fcc56.tar.bz2
timeline-4f2c334684e41742edfa7c56cee70468d60fcc56.zip
...
Diffstat (limited to 'FrontEnd')
-rw-r--r--FrontEnd/src/pages/timeline/TimelineInfoCard.tsx23
1 files changed, 16 insertions, 7 deletions
diff --git a/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx b/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx
index b1310be9..2bc40877 100644
--- a/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx
+++ b/FrontEnd/src/pages/timeline/TimelineInfoCard.tsx
@@ -162,13 +162,22 @@ export default function TimelineInfoCard(props: TimelineInfoCardProps) {
}
});
- const { controller, switchDialog } = useDialog({
- "full-page": (
- <FullPageDialog>
- <TimelineInfoContent timeline={timeline} onReload={onReload} />
- </FullPageDialog>
- ),
- });
+ const { controller, switchDialog } = useDialog(
+ {
+ "full-page": (
+ <FullPageDialog>
+ <TimelineInfoContent timeline={timeline} onReload={onReload} />
+ </FullPageDialog>
+ ),
+ },
+ {
+ onClose: {
+ "full-page": () => {
+ setCollapse(true);
+ },
+ },
+ },
+ );
return (
<Card