diff options
author | crupest <crupest@outlook.com> | 2021-07-07 01:19:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-07-07 01:19:47 +0800 |
commit | cd521b4fca89bebe036b70695f3b45b0cfcc035d (patch) | |
tree | c7ebf089a323232d685dc9f03dbdee0956ea8fb3 /FrontEnd/src/views/center/index.tsx | |
parent | f964adac55f0a231c43a14bf583137763d911bbe (diff) | |
download | timeline-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.tsx | 14 |
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); + }} + /> </> ); }; |