feat: 미리보기 팝업 header 컴포넌트에 적용
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user