removed not needed state and testing function
This commit is contained in:
parent
4be0d9a5bd
commit
092118a9c0
|
@ -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/>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue