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!);