feat: 미리보기 팝업 header 컴포넌트에 적용

This commit is contained in:
2025-05-24 00:47:27 +09:00
parent a27e9f1cdd
commit 6a7218b8ce
12 changed files with 204 additions and 18 deletions
@@ -76,13 +76,6 @@ const PreviewButton = ({ popupSn }: { popupSn: number }) => {
e.stopPropagation();
try {
const cookieName = `cs-popup-hide-for-day-${popupSn}`;
const cookies = document.cookie.split(";");
const popupCookie = cookies.find((cookie) =>
cookie.trim().startsWith(`${cookieName}=`),
);
if (popupCookie) return;
const response = await PopupApi.getPopupInfo(popupSn);
if (!response) return;