Drop <h1> from Task.tsx, fix Context.ts
This commit is contained in:
parent
1de76126f2
commit
1eab5c121b
2 changed files with 1 additions and 2 deletions
|
@ -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: {}});
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue