diff --git a/web_site/src/AppRoutes.jsx b/web_site/src/AppRoutes.jsx index 8c676e3..796c444 100644 --- a/web_site/src/AppRoutes.jsx +++ b/web_site/src/AppRoutes.jsx @@ -6,7 +6,7 @@ import { import About from './about/About.jsx'; import Docs from "./docs/Docs.jsx"; import Editor from './Editor.jsx'; -import Examples from './Examples.jsx'; +import Examples from './examples/Examples.jsx'; const AppRoutes = () => { return ( diff --git a/web_site/src/Examples.jsx b/web_site/src/Examples.jsx deleted file mode 100644 index 238f42b..0000000 --- a/web_site/src/Examples.jsx +++ /dev/null @@ -1,23 +0,0 @@ -import React, { useEffect } from 'react'; - -const useIframe = true; -const examplesPageURL = "https://wesunwin.github.io/three-game-engine/examples" - -const Examples = () => { - useEffect(() => { - if (!useIframe) { - window.location = examplesPageURL; - } - }, [useIframe]); - - return useIframe ? ( -