aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/timeline
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-07-07 01:19:47 +0800
committercrupest <crupest@outlook.com>2021-07-07 01:19:47 +0800
commitcd521b4fca89bebe036b70695f3b45b0cfcc035d (patch)
treec7ebf089a323232d685dc9f03dbdee0956ea8fb3 /FrontEnd/src/views/timeline
parentf964adac55f0a231c43a14bf583137763d911bbe (diff)
downloadtimeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.tar.gz
timeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.tar.bz2
timeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.zip
feat: Add dialog animations.
Diffstat (limited to 'FrontEnd/src/views/timeline')
-rw-r--r--FrontEnd/src/views/timeline/TimelineCard.tsx16
1 files changed, 5 insertions, 11 deletions
diff --git a/FrontEnd/src/views/timeline/TimelineCard.tsx b/FrontEnd/src/views/timeline/TimelineCard.tsx
index 56057560..339fbfa0 100644
--- a/FrontEnd/src/views/timeline/TimelineCard.tsx
+++ b/FrontEnd/src/views/timeline/TimelineCard.tsx
@@ -58,17 +58,11 @@ const TimelineCard: React.FC<TimelinePageCardProps> = (props) => {
setDialog={setDialog}
{...props}
/>
- {(() => {
- if (dialog === "delete") {
- return (
- <TimelineDeleteDialog
- timeline={timeline}
- open
- close={() => setDialog(null)}
- />
- );
- }
- })()}
+ <TimelineDeleteDialog
+ timeline={timeline}
+ open={dialog === "delete"}
+ close={() => setDialog(null)}
+ />
</>
);
};