File tree Expand file tree Collapse file tree 3 files changed +23
-28
lines changed
app/workspace/[workspaceId]/(inner-workspaceId-modal-fallback)/settings
features/sns-event-assistant/components/InstagramCallBackClient Expand file tree Collapse file tree 3 files changed +23
-28
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { Suspense } from 'react' ;
4- import MainWithWorkspacePage from '@app/workspace/[workspaceId]/page' ;
5- // import SettingsPage from '@app/workspace/[workspaceId]/@innerWorkspaceIdModal/(.)settings/page';
6- import ChangePasswordModalPage from '@app/workspace/[workspaceId]/@innerWorkspaceIdModal/(.)settings/change-password/page' ;
3+ import { ROUTES } from '@common/constants/routes.constants' ;
74
8- const ChangePasswordStandalonePage = ( ) => (
9- < >
10- < Suspense fallback = { < div > 로딩중...</ div > } >
11- < ChangePasswordModalPage />
12- </ Suspense >
13- < MainWithWorkspacePage />
14- </ >
15- ) ;
5+ import useStandaloneModalRedirect from '@common/hooks/useStandaloneModalRedirect' ;
166
17- export default ChangePasswordStandalonePage ;
7+ const ChangePasswordStandalonePage = ( ) => {
8+ useStandaloneModalRedirect ( ( workspaceId ) => ROUTES . WORKSPACE_MAIN ( workspaceId ) , {
9+ useBack : false ,
10+ } ) ;
11+
12+ return null ; // 화면 표시 없음
13+ } ;
14+
15+ export default ChangePasswordStandalonePage ;
Original file line number Diff line number Diff line change 11'use client' ;
22
3- import SettingModalPage from '../../@innerWorkspaceIdModal/(.)settings/page' ;
4- import { Suspense } from 'react' ;
5- import MainWithWorkspacePage from '@app/workspace/[workspaceId]/page' ;
3+ import { ROUTES } from '@common/constants/routes.constants' ;
64
7- const SettingsStandalonePage = ( ) => (
8- < >
9- < Suspense fallback = { < div > 로딩중...</ div > } >
10- < SettingModalPage />
11- </ Suspense >
12- < MainWithWorkspacePage />
13- </ >
14- ) ;
5+ import useStandaloneModalRedirect from '@common/hooks/useStandaloneModalRedirect' ;
156
16- export default SettingsStandalonePage ;
7+ const SettingsStandalonePage = ( ) => {
8+ useStandaloneModalRedirect ( ( workspaceId ) => ROUTES . WORKSPACE_MAIN ( workspaceId ) ) ;
9+
10+ return null ; // 화면 표시 없음
11+ } ;
12+
13+ export default SettingsStandalonePage ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const InstagramCallBackClient = () => {
4141 if ( ! code ) {
4242 // workspaceId 조건은 위에서 이미 확인했으므로 제거 가능
4343 console . error ( '인증 코드가 없습니다.' ) ;
44- router . push ( ROUTES . MODAL . SETTING . WORKSPACE_SETTING ( workspaceId ) ) ;
44+ router . push ( ROUTES . WORKSPACE_MAIN ( workspaceId ) ) ;
4545 return ;
4646 }
4747
@@ -58,8 +58,8 @@ const InstagramCallBackClient = () => {
5858 type : OnboardingToastType . SUCCESS_SNS_ACCOUNT ,
5959 snsAccount : data . instagramAccountName ,
6060 } ) ;
61- // 3. 온보딩 페이지로 복귀
62- router . push ( ROUTES . MODAL . SETTING . WORKSPACE_SETTING ( workspaceId ) ) ;
61+ // 3. 워크스페이스 페이지로 복귀
62+ router . push ( ROUTES . WORKSPACE_MAIN ( workspaceId ) ) ;
6363 } ,
6464 } ,
6565 ) ;
You can’t perform that action at this time.
0 commit comments