Skip to content

Commit

Permalink
[feat] 이벤트 생성 페이지로 이동하는 링크 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lybell-art committed Aug 14, 2024
1 parent d132407 commit 9324adc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/adminPage/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Route, Routes } from "react-router-dom";
import LoginPage from "./pages/LoginPage.jsx";
import EventsPage from "./pages/EventsPage.jsx";
import EventsDetailPage from "./pages/EventsDetailPage.jsx";
import EventsCreatePage from "./pages/EventsCreatePage.jsx";
import ProtectedRoute from "./pages/ProtectedRoute.jsx";
import RootRoute from "./pages/RootRoute.jsx";
import CommentsPage from "./pages/CommentsPage.jsx";
Expand All @@ -25,7 +26,7 @@ function App() {
<Route
exact
path="/events/create"
element={<div>event 생성 화면</div>}
element={<EventsCreatePage />}
/>
<Route path="/events/:id" element={<EventsDetailPage />} />
<Route path="/events" element={<EventsPage />} />
Expand Down
3 changes: 2 additions & 1 deletion src/adminPage/features/eventList/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useReducer, useDeferredValue } from "react";
import { Link } from "react-router-dom";

import { searchReducer, setDefaultState, searchStateToQuery } from "./queryReducer.js";
import checkReducer from "./checkReducer.js";
Expand All @@ -20,7 +21,7 @@ function EventList() {
return (
<div className="w-full h-full flex flex-col gap-4">
<div className="flex justify-end">
<Button>+ 이벤트 등록</Button>
<Link to="./create"><Button>+ 이벤트 등록</Button></Link>
</div>
<SearchBar onSearch={ (value)=>{
dispatch({type:"set_query", value});
Expand Down
11 changes: 11 additions & 0 deletions src/adminPage/pages/EventsCreatePage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Container from "@admin/components/Container.jsx";

function EventsCreatePage() {
return (
<Container>
<div>이벤트 생성 화면 들어갈 예정</div>
</Container>
);
}

export default EventsCreatePage;

0 comments on commit 9324adc

Please sign in to comment.