-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #737 from davidktlee/open-graph
Open graph 수정
- Loading branch information
Showing
39 changed files
with
380 additions
and
341 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use client'; | ||
|
||
import ErrorComponent from '@/app/_components/ErrorComponent'; | ||
import { checkBatchimEnding } from '@/utils'; | ||
import { useEffect } from 'react'; | ||
|
||
export default function Error({ | ||
error, | ||
reset, | ||
}: { | ||
error: Error & { digest?: string }; | ||
reset: () => void; | ||
}) { | ||
useEffect(() => { | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<ErrorComponent | ||
title={`지역정보${checkBatchimEnding('지역정보') ? '을' : '를'}`} | ||
reset={reset} | ||
/> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,34 +1,20 @@ | ||
import BackButton from '@/app/_components/place/BackButton'; | ||
import AreaList from '@/app/_components/setting/area/AreaList'; | ||
import { getAllArea } from '@/app/_components/setting/area/actions'; | ||
import ToastMsg from '@/app/_components/ui/toast/ToastMsg'; | ||
import { mypageAllAreaSchema } from '@/types/myPageResponse'; | ||
import React from 'react'; | ||
|
||
export default async function SetAreaPage() { | ||
const res = await getAllArea(); | ||
const categories = mypageAllAreaSchema.safeParse(res); | ||
if (!categories.success) | ||
return ( | ||
<> | ||
<nav className="relative py-4 flex justify-center items-center"> | ||
<BackButton className="absolute left-2" /> | ||
<span className="text-2xl font-light">지역 선택</span> | ||
</nav> | ||
<div className="w-full h-full flex flex-col break-keep justify-center items-center text-3xl text-center text-main"> | ||
지역 정보를 불러오는데 실패했습니다. <br /> | ||
다시 시도해주세요. | ||
</div> | ||
</> | ||
); | ||
|
||
if (res.status === 'failed') throw new Error(res.message); | ||
|
||
return ( | ||
<> | ||
<nav className="relative py-4 flex justify-center items-center"> | ||
<BackButton className="absolute left-2" /> | ||
<span className="text-2xl font-light">지역 선택</span> | ||
</nav> | ||
<AreaList categories={categories.data.categories} /> | ||
<AreaList categories={res.data.categories} /> | ||
</> | ||
); | ||
} |
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.