From 753aa71f4aeb0bbc0dfa2e786389d4494860c32e Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 26 Dec 2024 13:06:51 +0100 Subject: [PATCH] Adapting to changes in the solid router API --- client-solid/src/Containers/Primary.tsx | 18 +++++++++++------- client-solid/src/index.tsx | 9 +-------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/client-solid/src/Containers/Primary.tsx b/client-solid/src/Containers/Primary.tsx index b411a6c..deb002f 100644 --- a/client-solid/src/Containers/Primary.tsx +++ b/client-solid/src/Containers/Primary.tsx @@ -1,18 +1,22 @@ -import { Route, Routes } from "@solidjs/router"; +import { Route, Router } from "@solidjs/router"; import { JSXElement } from "solid-js"; import { NewPostInputArea } from "../Components/NewPost"; import { Posts } from "../Components/Posts"; import { SinglePost } from "../Components/SinglePost"; +function NotFound(): JSXElement { + return

404

; +} + // Primary is the section of the page that holds the main content export function Primary(): JSXElement { return ( - - } /> - } /> - } /> - 404} /> - + + + + + + ); } diff --git a/client-solid/src/index.tsx b/client-solid/src/index.tsx index 685ff03..5a53496 100644 --- a/client-solid/src/index.tsx +++ b/client-solid/src/index.tsx @@ -6,11 +6,4 @@ import "./index.css"; const root = document.getElementById("root"); -render( - () => ( - - - - ), - root! -); +render(() => , root!);