diff --git a/apps/common/features/tsconfig.json b/apps/common/features/tsconfig.json index f0333a1b7..f12491cae 100644 --- a/apps/common/features/tsconfig.json +++ b/apps/common/features/tsconfig.json @@ -27,7 +27,6 @@ "@/*": ["./*"], "@common/assets": ["../../../../packages/common/assets/dist/"], "@common/components": ["../../../../packages/common/components/dist/"], - "@common/config": ["../../../../packages/common/config/dist/"], "@common/network": ["../../../../packages/common/network/"] } }, diff --git a/packages/common/components/src/ui/footer/index.tsx b/packages/common/components/src/ui/footer/index.tsx index 8bb6e0c90..34b2e46e9 100644 --- a/packages/common/components/src/ui/footer/index.tsx +++ b/packages/common/components/src/ui/footer/index.tsx @@ -1,8 +1,9 @@ -import { useQuery } from "@tanstack/react-query"; +import { useRef } from "react"; import Autoplay from "embla-carousel-autoplay"; -import { getConfig } from "@common/config"; +import { useQuery } from "@tanstack/react-query"; import { ENDPOINT } from "../../config"; import { getSiteInfo } from "../../api"; +import { getCookie } from "../../lib"; import { Carousel, CarouselContent, @@ -10,10 +11,8 @@ import { CarouselNext, CarouselPrevious, } from "../carousel"; -import { useRef } from "react"; -const appConfig = getConfig(); -const siteId = appConfig.SITE_ID ?? ""; +const siteId = getCookie("site-id-key") ?? ""; export function Footer() { const { data: siteInfo } = useQuery({ diff --git a/packages/common/components/src/ui/header/index.tsx b/packages/common/components/src/ui/header/index.tsx index eaf8cc8e5..22e0a0d56 100644 --- a/packages/common/components/src/ui/header/index.tsx +++ b/packages/common/components/src/ui/header/index.tsx @@ -21,8 +21,8 @@ import { SearchForm } from "./search-form"; import { NoticePopover } from "./notice-popover"; const appConfig = getConfig(); -const siteId = appConfig.SITE_ID ?? ""; const userId = getCookie(appConfig.AUTH_USER_ID ?? ""); +const siteId = getCookie("site-id-key") ?? ""; const isLoggedIn = !!userId; export function Header({ viewOnly }: { viewOnly?: boolean }) { diff --git a/packages/common/components/src/ui/lnb/index.tsx b/packages/common/components/src/ui/lnb/index.tsx index b7ce9c6fa..07733dbed 100644 --- a/packages/common/components/src/ui/lnb/index.tsx +++ b/packages/common/components/src/ui/lnb/index.tsx @@ -40,8 +40,8 @@ import { } from "../../api"; const appConfig = getConfig(); -const appSiteId = appConfig.SITE_ID ?? ""; const userId = getCookie(appConfig.AUTH_USER_ID ?? ""); +const appSiteId = getCookie("site-id-key") ?? ""; const isLoggedIn = !!userId; export function LNB({ @@ -201,7 +201,7 @@ export function LNB({ /> {item.menuKornNm} - + ); @@ -282,9 +282,11 @@ export function LNB({ > - {menuList?.map((item) => )} + {menuList?.map((item) => ( + + ))} - + {/* 도움말 아이콘 */}
@@ -292,7 +294,7 @@ export function LNB({ - - - 도움말 - -
- {currentMenuHelp ? ( -
- ) : ( -

- 현재 페이지에 대한 도움말이 없습니다. -

- )} -
+ + + 도움말 + +
+ {currentMenuHelp ? ( +
+ ) : ( +

+ 현재 페이지에 대한 도움말이 없습니다. +

+ )} +