From e53b044b5a8a35e06ce86763105c9ac0bd338355 Mon Sep 17 00:00:00 2001 From: Jeongmin Woo Date: Mon, 10 Oct 2022 14:31:55 +0900 Subject: [PATCH] refactor: initialize modal root in modal portal - create modal root at initial rendering - set ref initial value as null Refs: https://github.com/woowacourse/service-apply/pull/649#discussion_r988232621 https://github.com/woowacourse/service-apply/pull/649#discussion_r988229046 --- frontend/src/App.js | 97 +++++++++---------- .../Modal/ModalPortal/ModalPortal.tsx | 11 ++- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/frontend/src/App.js b/frontend/src/App.js index 17dd80d16..eb21c5478 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -26,57 +26,54 @@ import ModalProvider from "./provider/ModalProvider"; const App = () => { return ( - <> - - - - -
-
- - - } /> - } /> - } /> - } /> - } /> - } /> - }> - } /> - } /> - } /> - } /> - + + + + +
+
+ + + } /> + } /> + } /> + } /> + } /> + } /> + }> + } /> + } /> + } /> + } /> + - }> - - - - } - /> - - - - } - /> - - - -
-
- - - - - -
+