Skip to content

Commit

Permalink
feat: 기존 회원가입 사용자 flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jongse7 committed Oct 22, 2024
1 parent feec53d commit 16a04d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/containers/common/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Header({ state = State.Onboarding, onLogout = () => {} }: Header
/>
<div className={cn(styles.headerItemStyle, 'xs:px-0.5 sm:px-0.5 md:px-0.5 lg:px-0.5')}>
{/* 임시로 메인 라우팅 /beta로 변경 */}
<Link to="/beta">
<Link to="/">
<div className="flex items-center gap-4">
<Logo size={isSmall ? '23px' : '46px'} fill={styles.fillColor} />
<span className={cn(styles.textColor, 'min-w-fit text-[20px] text-lg font-bold')}>US:SUM</span>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/common/Header/const/pathData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
],
소통: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions src/pages/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Routes>
<Route path="/" element={<Layout />}>
<Route path="/beta" element={<MainPage />} />
<Route path="/" element={<MainPage />} />
{/*소개*/}
<Route path="/intro" element={<IntroPage />} />
<Route path="/intro/edit" element={<IntroEditPage />} />
Expand Down Expand Up @@ -73,7 +73,7 @@ export function MainRouter() {
</Route>
{/*온보딩*/}
<Route path="/register" element={<KakaoRegisterPage />} />
<Route path="/register/passu" element={<KakaoRegisterPassuPage />} />
<Route path="/register/redirect" element={<KakaoRegisterRedirectPage />} />
<Route path="/register/:sort" element={<GeneralRegisterPage />} />
<Route path="/auth/callback" element={<KakaoRedirect />} />
</Routes>
Expand Down

0 comments on commit 16a04d2

Please sign in to comment.