File tree Expand file tree Collapse file tree 4 files changed +32
-14
lines changed Expand file tree Collapse file tree 4 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 1+ import cx from 'classnames' ;
2+ import Loader from 'components/common/Loader' ;
3+
4+ import style from './style.module.scss' ;
5+
6+ function LoadingPage ( ) {
7+ return (
8+ < div className = { cx ( style . container ) } >
9+ < Loader size = { 100 } />
10+ </ div >
11+ ) ;
12+ }
13+
14+ export default LoadingPage ;
Original file line number Diff line number Diff line change 1+ .container {
2+ display : flex ;
3+ align-items : center ;
4+ justify-content : center ;
5+ width : 100vw ;
6+ height : 100vh ;
7+ }
8+ .container {
9+ display : flex ;
10+ align-items : center ;
11+ justify-content : center ;
12+ width : 100vw ;
13+ height : 100vh ;
14+ }
Original file line number Diff line number Diff line change 1- import cx from 'classnames' ;
2- import Loader from 'components/common/Loader' ;
31import { useContext , useEffect } from 'react' ;
42import { useLocation , useNavigate } from 'react-router-dom' ;
53import { postAuthLogin } from 'src/apis/auth' ;
64import UserContext from 'src/contexts/user' ;
7-
8- import style from './style.module.scss' ;
5+ import LoadingPage from 'src/pages/Loading' ;
96
107function OAuthPage ( ) {
118 const userContext = useContext ( UserContext ) ;
129
1310 if ( userContext === null ) {
1411 console . log ( '유저 컨텍스트를 찾을 수 없습니다.' ) ;
1512
16- return (
17- < div className = { cx ( style . container ) } >
18- < Loader size = { 100 } />
19- </ div >
20- ) ;
13+ return < LoadingPage /> ;
2114 }
2215
2316 const location = useLocation ( ) ;
@@ -47,11 +40,7 @@ function OAuthPage() {
4740 login ( code ) ;
4841 } , [ ] ) ;
4942
50- return (
51- < div className = { cx ( style . container ) } >
52- < Loader size = { 100 } />
53- </ div >
54- ) ;
43+ return < LoadingPage /> ;
5544}
5645
5746export default OAuthPage ;
Original file line number Diff line number Diff line change 1+ export { default as LoadingPage } from './Loading' ;
12export { default as WorkspacePage } from './Workspace' ;
23export { default as LoginPage } from './Login' ;
34export { default as OAuthPage } from './OAuth' ;
You can’t perform that action at this time.
0 commit comments