Skip to content

Commit

Permalink
160-FEAT: Add the base structure for react conversion of SolarLand page
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxRichard2007 committed Jan 21, 2025
1 parent a2ac589 commit 0787f78
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/react/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const App: React.FC = () => {
<Link to={"/event-land"}> Event Land </Link>
<br/>
<Link to={"/show-land"}> Show Land </Link>
<br/>
<Link to={"/solar-land"}> Solar Land </Link>
</>
);
};
Expand Down
5 changes: 5 additions & 0 deletions apps/react/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([
{
Expand All @@ -19,6 +20,10 @@ const router = createBrowserRouter([
path: "/show-land",
element: <ShowLand />,
},
{
path: "/solar-land",
element: <SolarLand />,
},
]);

createRoot(document.getElementById("root")!).render(
Expand Down
7 changes: 7 additions & 0 deletions apps/react/solar-land/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const App: React.FC = () => {
return <div>Hello world! Solar Land this is new</div>;
};

export default App;
9 changes: 9 additions & 0 deletions apps/react/solar-land/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'
import { createRoot } from "react-dom/client";
import App from "@/App";

createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
</React.StrictMode>
);

0 comments on commit 0787f78

Please sign in to comment.