Drop <h1> from Task.tsx, fix Context.ts

This commit is contained in:
0x1eef 2024-03-19 13:19:44 -03:00
parent 1de76126f2
commit 1eab5c121b
2 changed files with 1 additions and 2 deletions

View file

@ -1,3 +1,3 @@
import { createContext } from "react"; import { createContext } from "react";
type TContext = Record<"params" | "cookies", Record<string, string>>; type TContext = Record<"params" | "cookies", Record<string, string>>;
export const AppContext = createContext<TContext>({}); export const AppContext = createContext<TContext>({params: {}, cookies: {}});

View file

@ -73,7 +73,6 @@ export function Task() {
<NavBar /> <NavBar />
</div> </div>
<div className="w-3/4"> <div className="w-3/4">
<h1>{task ? "Edit task" : "New task"}</h1>
<form onSubmit={handleSubmit(onSave)}> <form onSubmit={handleSubmit(onSave)}>
<input <input
type="hidden" type="hidden"