Browse Source

fix pages for widget

AykutSarac 2 years ago
parent
commit
073111f8b9
2 changed files with 3 additions and 3 deletions
  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: () => ({
     "/": { page: "/" },
     "/editor": { page: "/Editor" },
-    "/widget": { page: "/widget" },
+    "/widget": { page: "/Widget" },
   }),
   compiler: {
     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 [json, setJson] = React.useState("");
 
@@ -68,4 +68,4 @@ const Widget = () => {
   );
 };
 
-export default Widget;
+export default WidgetPage;