rename: 팝업 보기 파일명 변경
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { ViewPopup as VViewPopup } from "@/pages/popup";
|
||||
|
||||
export default async function ViewPopup({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ popupSn: string }>;
|
||||
}) {
|
||||
const { popupSn } = await params;
|
||||
return <VViewPopup popupSn={popupSn} />;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import { ViewPopupPage as VViewPopupPage } from "@/pages/popup";
|
||||
|
||||
export default async function ViewPopupPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ popupSn: string }>;
|
||||
}) {
|
||||
const { popupSn } = await params;
|
||||
return <VViewPopupPage popupSn={popupSn} />;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
export { CreatePage } from "./ui/create-page";
|
||||
export { ModifyPage } from "./ui/modify-page";
|
||||
export { PopupPage } from "./ui/popup-page";
|
||||
export { ViewPopupPage } from "./ui/view-popup-page";
|
||||
export { ViewPopup } from "./ui/view-popup";
|
||||
|
||||
@@ -83,7 +83,7 @@ const PreviewButton = ({ popupSn }: { popupSn: number }) => {
|
||||
const left = response.popupHrzntltyPstn + window.screenX;
|
||||
const top = response.popupVtclPstn + window.screenY;
|
||||
window.open(
|
||||
`/view-popup/${popupSn}`,
|
||||
`/popup/${popupSn}`,
|
||||
"",
|
||||
`width=${width},height=${height},left=${left},top=${top}`,
|
||||
);
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@ import { PopupApi } from "../api/popup-service";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { setCookie, getCookie } from "@/shared/lib/cookie";
|
||||
|
||||
function ViewPopupPage({ popupSn }: { popupSn: string }) {
|
||||
function ViewPopup({ popupSn }: { popupSn: string }) {
|
||||
const doNotShowTodayRef = useRef(false);
|
||||
|
||||
const { data: popupInfo } = useQuery({
|
||||
@@ -71,4 +71,4 @@ function ViewPopupPage({ popupSn }: { popupSn: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
export { ViewPopupPage };
|
||||
export { ViewPopup };
|
||||
@@ -64,7 +64,7 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
|
||||
const top = (response.popupVtclPstn || 0) + window.screenY;
|
||||
|
||||
const popupWindow = window.open(
|
||||
`/view-popup/${popup.popupSn}`,
|
||||
`/popup/${popup.popupSn}`,
|
||||
"",
|
||||
`width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes,status=no,location=no,menubar=no`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user