diff options
author | crupest <crupest@outlook.com> | 2023-09-01 00:06:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-09-01 00:06:50 +0800 |
commit | 4f2c334684e41742edfa7c56cee70468d60fcc56 (patch) | |
tree | 00b415bab3c2c4884a8d576aa6e702b9e2d992a6 /FrontEnd/src/pages/timeline | |
parent | 9199a57cc86ebc5c0a24f8277cbc8463e8262519 (diff) | |
download | timeline-4f2c334684e41742edfa7c56cee70468d60fcc56.tar.gz timeline-4f2c334684e41742edfa7c56cee70468d60fcc56.tar.bz2 timeline-4f2c334684e41742edfa7c56cee70468d60fcc56.zip |
...
Diffstat (limited to 'FrontEnd/src/pages/timeline')
-rw-r--r-- | FrontEnd/src/pages/timeline/TimelineInfoCard.tsx | 23 |
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 |