Skip to content

Commit

Permalink
feat: 알림 페이지 json-ld 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
im-na0 committed Jul 12, 2024
1 parent 01b51cb commit 20cd58e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/pages/alarmPage/AlarmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { fetchUserInfo } from "@/apis/fetchUserInfo";
import NoResult from "@/components/noResult/NoResult";
import { PATH } from "@/constants/path";
import { isMobileSafari } from "@/utils/isMobileSafari";
import { HelmetTag } from "@/components/Helmet/Helmet";

const AlarmPage = () => {
const AlarView = () => {
const mobileSafari = isMobileSafari();

const { data: userData } = useSuspenseQuery({
Expand Down Expand Up @@ -66,4 +67,21 @@ const AlarmPage = () => {
}
};

const AlarmPage = () => {
const schemaData = {
"@type": "WebPage",
mainEntityOfPage: {
"@type": "WebPage",
"@id": `${location.origin}${location.pathname}}`,
},
};

return (
<>
<HelmetTag title="알림" schemaData={schemaData} />
<AlarView />
</>
);
};

export default AlarmPage;

0 comments on commit 20cd58e

Please sign in to comment.