소스 검색

fix pages for widget

AykutSarac 2 년 전
부모
커밋
073111f8b9
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      next.config.js
  2. 2 2
      src/pages/Widget/index.tsx

+ 1 - 1
next.config.js

@@ -8,7 +8,7 @@ const nextConfig = {
   exportPathMap: () => ({
   exportPathMap: () => ({
     "/": { page: "/" },
     "/": { page: "/" },
     "/editor": { page: "/Editor" },
     "/editor": { page: "/Editor" },
-    "/widget": { page: "/widget" },
+    "/widget": { page: "/Widget" },
   }),
   }),
   compiler: {
   compiler: {
     styledComponents: true,
     styledComponents: true,

+ 2 - 2
src/pages/widget.tsx → src/pages/Widget/index.tsx

@@ -32,7 +32,7 @@ function inIframe() {
   }
   }
 }
 }
 
 
-const Widget = () => {
+const WidgetPage = () => {
   const { query, push } = useRouter();
   const { query, push } = useRouter();
   const [json, setJson] = React.useState("");
   const [json, setJson] = React.useState("");
 
 
@@ -68,4 +68,4 @@ const Widget = () => {
   );
   );
 };
 };
 
 
-export default Widget;
+export default WidgetPage;