Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix pages for widget

AykutSarac073111f8b911
diff --git a/next.config.js b/next.config.js
index 06a093ca..3b4b4b9f 100644
--- a/next.config.js
+++ b/next.config.js
@@ -8,7 +8,7 @@ const nextConfig = {
exportPathMap: () => ({
"/": { page: "/" },
"/editor": { page: "/Editor" },
- "/widget": { page: "/widget" },
+ "/widget": { page: "/Widget" },
}),
compiler: {
styledComponents: true,
diff --git a/src/pages/widget.tsx b/src/pages/Widget/index.tsx
similarity index 96%
rename from src/pages/widget.tsx
rename to src/pages/Widget/index.tsx
index 818a81ea..052bb30b 100644
--- a/src/pages/widget.tsx
+++ b/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;