aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/center/index.tsx
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/center/index.tsx
parentf964adac55f0a231c43a14bf583137763d911bbe (diff)
downloadtimeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.tar.gz
timeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.tar.bz2
timeline-cd521b4fca89bebe036b70695f3b45b0cfcc035d.zip
feat: Add dialog animations.
Diffstat (limited to 'FrontEnd/src/views/center/index.tsx')
-rw-r--r--FrontEnd/src/views/center/index.tsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/FrontEnd/src/views/center/index.tsx b/FrontEnd/src/views/center/index.tsx
index d226e63c..430d9781 100644
--- a/FrontEnd/src/views/center/index.tsx
+++ b/FrontEnd/src/views/center/index.tsx
@@ -47,14 +47,12 @@ const HomePage: React.FC = () => {
</div>
<CenterBoards />
</div>
- {dialog === "create" && (
- <TimelineCreateDialog
- open
- close={() => {
- setDialog(null);
- }}
- />
- )}
+ <TimelineCreateDialog
+ open={dialog === "create"}
+ close={() => {
+ setDialog(null);
+ }}
+ />
</>
);
};