Skip to content

Commit

Permalink
feat : 외출 페이지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Juone2 committed Mar 5, 2024
1 parent c41586b commit fde159b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
19 changes: 19 additions & 0 deletions services/admin/src/pages/goOut/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { WithNavigatorBar } from '@/components/WithNavigatorBar';
import styled from 'styled-components';
import { Button } from '@team-aliens/design-system';

export function Outing() {
return (
<WithNavigatorBar>
<_Wrapper>
<Button>모달 열기</Button>
</_Wrapper>
</WithNavigatorBar>
);
}

const _Wrapper = styled.div`
margin: 0 auto;
width: 1030px;
margin-bottom: 150px;
`;
12 changes: 6 additions & 6 deletions services/admin/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
Route,
Routes,
BrowserRouter,
createBrowserRouter,
} from 'react-router-dom';
import { createBrowserRouter } from 'react-router-dom';
import { LoginPage } from '@/pages/LoginPage';
import { FindIdPage } from './pages/FindId';
import { Home } from '@/pages/Home';
Expand All @@ -22,6 +17,7 @@ import Index from '@/pages/apply';
import RemainsLists from '@/pages/apply/remains';
import { pagePath } from './utils/pagePath';
import { NotFoundPage } from './pages/NotFound';
import { Outing } from './pages/goOut';

export const pathToKorean = {
'notice': {
Expand Down Expand Up @@ -114,6 +110,10 @@ export const Router = createBrowserRouter([
},
],
},
{
path: pagePath.outing,
children: [{ index: true, element: <Outing /> }],
},
],
},
]);
8 changes: 5 additions & 3 deletions services/admin/src/utils/pagePath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ interface PagePath {
list: '/apply/study';
create: '/apply/study/create';
deatail: (
studyRoomId: number | string,
studyRoomId: number | string
) => `/apply/study/detail/${typeof studyRoomId}`;
patch: (
studyRoomId: number | string,
studyRoomId: number | string
) => `/apply/study/detail/patch/${typeof studyRoomId}`;
};
};
Expand All @@ -28,9 +28,10 @@ interface PagePath {
write: '/notice/write';
detail: (noticeId: number | string) => `/notice/detail/${typeof noticeId}`;
patch: (
noticeId: number | string,
noticeId: number | string
) => `/notice/detail/patch/${typeof noticeId}`;
};
outing: '/outing';
}

export const pagePath: PagePath = {
Expand Down Expand Up @@ -62,4 +63,5 @@ export const pagePath: PagePath = {
`/apply/study/detail/patch/${studyRoomId}`,
},
},
outing: '/outing',
} as const;

0 comments on commit fde159b

Please sign in to comment.