Skip to content

Commit

Permalink
chore : 지도 편지 작성 url 추가 및 수정 (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmjjaa authored Dec 9, 2024
1 parent 28642d1 commit cea69ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/Map/MapExplorerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const MapExplorerPage = () => {
<>
{searchedLocation ? (
<NavLink
to={'/letter/create'}
to={`/letter/map/:${searchedLocation.lat}/:${searchedLocation.lon}/create`}
className="absolute gap-2 p-2 transform -translate-x-12 flex-center bottom-60 translate-y-7 left-1/2 btn-base w-52 rounded-2xl"
>
<HiOutlinePencilAlt />
Expand Down Expand Up @@ -112,7 +112,7 @@ export const MapExplorerPage = () => {
<>
{searchedLocation ? (
<NavLink
to={'/letter/create'}
to={`/letter/map/:${searchedLocation.lat}/:${searchedLocation.lon}/create`}
className="absolute gap-2 p-2 transform -translate-x-12 flex-center bottom-24 translate-y-7 left-1/2 btn-base w-52 rounded-2xl"
>
<HiOutlinePencilAlt />
Expand Down
11 changes: 9 additions & 2 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,15 @@ export const router = createBrowserRouter([
</ProtectedRoute>
),
children: [
{ path: 'keyword/reply/create/:letterId', element: <CreateLetterPage /> }, // 키워드 답장 편지
{ path: 'map/reply/create/:letterId', element: <CreateLetterPage /> }, // 지도 답장 편지
{ path: 'map/:lat/:lot/create', element: <CreateLetterPage /> },
{
path: 'keyword/reply/create/:letterId',
element: <CreateLetterPage />
}, // 키워드 답장 편지
{
path: 'map/reply/create/:letterId',
element: <CreateLetterPage />
}, // 지도 답장 편지
{ path: 'create', element: <CreateLetterPage /> },
{ path: 'select', element: <SelectItemPage /> },
{ path: 'success', element: <SuccessLetterPage /> },
Expand Down

0 comments on commit cea69ed

Please sign in to comment.