From 0787f780f34e68c3c9b795f436cd2613dfb68b75 Mon Sep 17 00:00:00 2001 From: MaxRichard2007 Date: Tue, 21 Jan 2025 20:15:09 +0330 Subject: [PATCH] 160-FEAT: Add the base structure for react conversion of SolarLand page --- apps/react/App.tsx | 2 ++ apps/react/main.tsx | 5 +++++ apps/react/solar-land/App.tsx | 7 +++++++ apps/react/solar-land/main.tsx | 9 +++++++++ 4 files changed, 23 insertions(+) create mode 100644 apps/react/solar-land/App.tsx create mode 100644 apps/react/solar-land/main.tsx diff --git a/apps/react/App.tsx b/apps/react/App.tsx index a68755e..545ad4b 100644 --- a/apps/react/App.tsx +++ b/apps/react/App.tsx @@ -8,6 +8,8 @@ const App: React.FC = () => { Event Land
Show Land +
+ Solar Land ); }; diff --git a/apps/react/main.tsx b/apps/react/main.tsx index cc0cb1c..f200a88 100644 --- a/apps/react/main.tsx +++ b/apps/react/main.tsx @@ -5,6 +5,7 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom"; import MainPage from "./App.tsx"; import EventLand from "./event-land/App.tsx"; import ShowLand from "./show-land/App.tsx"; +import SolarLand from "./solar-land/App.tsx"; const router = createBrowserRouter([ { @@ -19,6 +20,10 @@ const router = createBrowserRouter([ path: "/show-land", element: , }, + { + path: "/solar-land", + element: , + }, ]); createRoot(document.getElementById("root")!).render( diff --git a/apps/react/solar-land/App.tsx b/apps/react/solar-land/App.tsx new file mode 100644 index 0000000..af15637 --- /dev/null +++ b/apps/react/solar-land/App.tsx @@ -0,0 +1,7 @@ +import React from "react"; + +const App: React.FC = () => { + return
Hello world! Solar Land this is new
; +}; + +export default App; diff --git a/apps/react/solar-land/main.tsx b/apps/react/solar-land/main.tsx new file mode 100644 index 0000000..b9e8133 --- /dev/null +++ b/apps/react/solar-land/main.tsx @@ -0,0 +1,9 @@ +import React from 'react' +import { createRoot } from "react-dom/client"; +import App from "@/App"; + +createRoot(document.getElementById("root")!).render( + + + +);