-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: slop 데이터 형식 변경에 따른 컴포넌트 적용 * fix: 지산 스키장 예시 추가 * fix: 도메인에 따라 다른 데이터를 주도록 분기처리
- Loading branch information
1 parent
fe504b3
commit 31506b0
Showing
8 changed files
with
129 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { redirect } from 'next/navigation'; | ||
import React from 'react'; | ||
import WebcamMobileMapPage from '@/pages/webcam/ui/webcam-mobile-map-page'; | ||
import { JISAN } from '@/entities/slop/model'; | ||
|
||
const domainMap = { | ||
jisan: JISAN, | ||
}; | ||
|
||
const Page = ({ params }: { params: { key: string } }) => { | ||
if (!(params.key in domainMap)) { | ||
redirect('/not-found'); | ||
} | ||
|
||
const domain = domainMap[params.key as keyof typeof domainMap]; | ||
|
||
return <WebcamMobileMapPage data={domain} />; | ||
}; | ||
|
||
export default Page; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.