From 16a04d290cd63ee643de24694ba94ef4784e4a0f Mon Sep 17 00:00:00 2001 From: jongse7 Date: Tue, 22 Oct 2024 21:00:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=B0=EC=A1=B4=20=ED=9A=8C=EC=9B=90?= =?UTF-8?q?=EA=B0=80=EC=9E=85=20=EC=82=AC=EC=9A=A9=EC=9E=90=20flow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/containers/common/Header/Header.tsx | 2 +- src/containers/common/Header/const/pathData.tsx | 2 +- .../containers/RegisterButtonSection.tsx | 0 src/pages/kakao/{passu => redirect}/page.tsx | 5 ++--- src/pages/router.tsx | 6 +++--- 5 files changed, 7 insertions(+), 8 deletions(-) rename src/pages/kakao/{passu => redirect}/containers/RegisterButtonSection.tsx (100%) rename src/pages/kakao/{passu => redirect}/page.tsx (91%) diff --git a/src/containers/common/Header/Header.tsx b/src/containers/common/Header/Header.tsx index c83bcb34..42d757e0 100644 --- a/src/containers/common/Header/Header.tsx +++ b/src/containers/common/Header/Header.tsx @@ -34,7 +34,7 @@ export function Header({ state = State.Onboarding, onLogout = () => {} }: Header />
{/* 임시로 메인 라우팅 /beta로 변경 */} - +
US:SUM diff --git a/src/containers/common/Header/const/pathData.tsx b/src/containers/common/Header/const/pathData.tsx index 103488a3..4c8d1532 100644 --- a/src/containers/common/Header/const/pathData.tsx +++ b/src/containers/common/Header/const/pathData.tsx @@ -20,7 +20,7 @@ export const menuItems = { 학생자치기구: [ // { name: '산하기구', path: '/affiliated_organization' }, // { name: '특별기구', path: '/special_organization' }, - { name: 'passu', path: '/register/passu' }, + { name: 'passu', path: '/register/redirect' }, { name: '감사기구', path: '/audit?category=all' }, ], 소통: [ diff --git a/src/pages/kakao/passu/containers/RegisterButtonSection.tsx b/src/pages/kakao/redirect/containers/RegisterButtonSection.tsx similarity index 100% rename from src/pages/kakao/passu/containers/RegisterButtonSection.tsx rename to src/pages/kakao/redirect/containers/RegisterButtonSection.tsx diff --git a/src/pages/kakao/passu/page.tsx b/src/pages/kakao/redirect/page.tsx similarity index 91% rename from src/pages/kakao/passu/page.tsx rename to src/pages/kakao/redirect/page.tsx index 5aa0809f..04c6c16f 100644 --- a/src/pages/kakao/passu/page.tsx +++ b/src/pages/kakao/redirect/page.tsx @@ -4,12 +4,11 @@ import { RegisterTextSection } from '@/pages/kakao/containers/RegisterTextSectio import { RegisterButtonSection } from './containers/RegisterButtonSection'; import { useParams } from 'react-router-dom'; -export function KakaoRegisterPassuPage() { +export function KakaoRegisterRedirectPage() { let { redirect_url } = useParams(); if (redirect_url === undefined) { - redirect_url = ''; - return <>; + redirect_url = 'https://ssuketch60.cafe24.com/'; } return ( diff --git a/src/pages/router.tsx b/src/pages/router.tsx index f0c113fd..c6af1509 100644 --- a/src/pages/router.tsx +++ b/src/pages/router.tsx @@ -28,13 +28,13 @@ import { LostDetailPage } from './lost-article/detail/page'; import { LostPatchPage } from './lost-article/patch/page'; import PersonalDataPage from './personal-data/page'; import { Layout } from './layout/headerLayout'; -import { KakaoRegisterPassuPage } from './kakao/passu/page'; +import { KakaoRegisterRedirectPage } from './kakao/redirect/page'; export function MainRouter() { return ( }> - } /> + } /> {/*소개*/} } /> } /> @@ -73,7 +73,7 @@ export function MainRouter() { {/*온보딩*/} } /> - } /> + } /> } /> } />