Skip to content

Commit

Permalink
Merge pull request #158 from Igloo-Club/AdvanceApplication/#152
Browse files Browse the repository at this point in the history
fix: 사전알림 시 메인페이지 접근 막기
  • Loading branch information
SooY2 authored Mar 11, 2024
2 parents 9fd5778 + ebd1a7a commit ba2de47
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 34 deletions.
47 changes: 24 additions & 23 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ import { createBrowserRouter } from 'react-router-dom';
import Login from './login';
import AuthKakao from './login/AuthKakao';
import Landing from './landing/Landing';
import MainPage from './main/pages/mainPage';
import DetailPage from './main/pages/DetailPage';
import FinishMatch from './main/pages/finishMatch';
import Register from './register/RegisterPage';
import NungilList from './nungilList/pages/nungilList';
import ReceivedDetailPage from './nungilList/pages/receivedDetailPage';
import SendDetailPage from './nungilList/pages/sendDetailPage';
import MyPage from './mypage/pages/myPage';
import EditProfilePage from './mypage/pages/editProfilePage';
import Chat from './chat/Chat';
import ChatRoom from './chat/components/chatRoom/ChatRoom';
// // import MainPage from './main/pages/mainPage';
// import DetailPage from './main/pages/DetailPage';
// import FinishMatch from './main/pages/finishMatch';
// import NungilList from './nungilList/pages/nungilList';
// import ReceivedDetailPage from './nungilList/pages/receivedDetailPage';
// import SendDetailPage from './nungilList/pages/sendDetailPage';
// import MyPage from './mypage/pages/myPage';
// import EditProfilePage from './mypage/pages/editProfilePage';
// import Chat from './chat/Chat';
// import ChatRoom from './chat/components/chatRoom/ChatRoom';
import 사전신청완료 from './common/components/RegisterAdvanceApplication';

const router = createBrowserRouter([
{
Expand All @@ -29,20 +30,20 @@ const router = createBrowserRouter([
},
{
path: '/main-page',
element: <MainPage />,
element: <사전신청완료 />,
},
{
path: 'detailpage/:nungilId',
element: <DetailPage />,
},
{ path: 'finishmatch/:nungilId', element: <FinishMatch /> },
{ path: 'nungillist', element: <NungilList /> },
{ path: 'receiveddetailpage/:nungilId', element: <ReceivedDetailPage /> },
{ path: 'senddetailpage/:nungilId', element: <SendDetailPage /> },
{ path: 'mypage', element: <MyPage /> },
{ path: 'editprofilepage', element: <EditProfilePage /> },
{ path: 'chat', element: <Chat /> },
{ path: 'chat/:chatRoomId', element: <ChatRoom /> },
// {
// path: 'detailpage/:nungilId',
// element: <DetailPage />,
// },
// { path: 'finishmatch/:nungilId', element: <FinishMatch /> },
// { path: 'nungillist', element: <NungilList /> },
// { path: 'receiveddetailpage/:nungilId', element: <ReceivedDetailPage /> },
// { path: 'senddetailpage/:nungilId', element: <SendDetailPage /> },
// { path: 'mypage', element: <MyPage /> },
// { path: 'editprofilepage', element: <EditProfilePage /> },
// { path: 'chat', element: <Chat /> },
// { path: 'chat/:chatRoomId', element: <ChatRoom /> },
],
},
{
Expand Down
Empty file removed src/common/components/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from '@emotion/styled';
import { CheckApplication } from '../assets/svgs/0_index';
import { CheckApplication } from '../../register/assets/svgs/0_index';
import { Link } from 'react-router-dom';

const 사전신청완료 = () => {
Expand Down
4 changes: 1 addition & 3 deletions src/common/styles/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ const globalStyles = css`
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
align-items: center;
justify-content: flex-start;
width: 100vw;
max-width: 425px;
overflow: hidden;
}
select,
Expand Down
3 changes: 2 additions & 1 deletion src/landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const Landing = () => {
export default Landing;

const landingStyles = css`
width: 100%;
width: 100vw;
max-width: 425px;
height: calc(var(--vh, 1vh) * 100);
overflow: hidden;
`;
3 changes: 2 additions & 1 deletion src/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Login = () => {
};

return (
<div css={{ overflowY: 'scroll', width: '100%' }}>
<div css={{ overflowY: 'scroll', width: '100%', maxWidth: '425px' }}>
<img src={HeroImage} css={backgroundImage} />
<div css={containerStyles}>
<StGuide>{guidement}</StGuide>
Expand Down Expand Up @@ -63,6 +63,7 @@ const backgroundImage = css`
position: absolute;
z-index: 1;
width: 100%;
max-width: 425px;
height: 100vh;
`;

Expand Down
4 changes: 1 addition & 3 deletions src/register/RegisterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const Register = () => {
<장소선택
onPrev={() => setStep('시간선택')}
onNext={() => {
setStep('회원가입완료'), localStorage.setItem('STEP', '가입완료');
setStep('사전신청완료'), localStorage.setItem('STEP', '가입완료');
}}
registerScheduleValues={registerScheduleValues}
percent={100}
Expand All @@ -269,8 +269,6 @@ const RagisterLayout = styled.section`
display: flex;
flex-direction: column;
width: 100%;
/* height: calc(var(--vh, 1vh) * 100); */
height: 100%;
padding: 0 2rem;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions src/register/components/RegisterBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const RegisterBtn = ({ isActive, onClick, content }: RegisterBtnProps) => {
export default RegisterBtn;

const Button = styled.button<{ isActive: boolean }>`
position: relative;
width: 100%;
min-height: 5.4rem;
margin-top: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/register/funnelPages/0_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 지역선택 from './RegisterSelectPlace';
import 시간선택 from './RegisterSelectTime';
import 장소선택 from './RegisterSelectMarker';
import 회원가입완료 from './RegisterFinish';
import 사전신청완료 from './RegisterAdvanceApplication';
import 사전신청완료 from '../../common/components/RegisterAdvanceApplication';

export {
약관동의,
Expand Down
3 changes: 2 additions & 1 deletion src/register/styles/registerStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export const articleStyles = css`
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100%;
height: 100%;
overflow-y: hidden;
overflow-y: scroll;
`;

export const sectionStyles = css`
Expand Down

0 comments on commit ba2de47

Please sign in to comment.