removed not needed state and testing function

This commit is contained in:
Joonas 2023-01-13 18:44:44 +02:00
parent 4be0d9a5bd
commit 092118a9c0
2 changed files with 0 additions and 7 deletions

View File

@ -1,9 +1,6 @@
import { useState } from "react";
import Header from "./Header";
export default function Overlay({ children }) {
const [theme, setTheme] = useState("latte");
return (
<div className={`max-w-5xl mx-auto p-8`}>
<Header/>

View File

@ -5,10 +5,6 @@ import { useState } from "react";
import Overlay from "~/components/Overlay";
import prisma from "~/utils/db.server";
function scrollTo(hash) {
location.hash = "#" + hash;
}
export async function action({ request, params }) {
const threadId = params.threadId;