Skip to content

Commit 2e1f588

Browse files
rileysdevbenh
andauthored
Fix types (#1)
Fix types --------- Co-authored-by: Benjamin Hindman <[email protected]>
1 parent c4eb371 commit 2e1f588

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

web/src/components/Input.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const DEADLINES: Deadline[] = ["minute", "hour", "day"];
77
const InputContainer = ({
88
handleSubmit,
99
}: {
10-
handleSubmit: (e: FormEvent<HTMLFormElement>, value: string) => void;
10+
handleSubmit: (
11+
e: FormEvent<HTMLFormElement>,
12+
name: string,
13+
deadline: Date
14+
) => void;
1115
}) => {
1216
const [name, setName] = useState("");
1317
const [deadline, setDeadline] = useState<Deadline>("minute");

web/src/components/Todos/TodoItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const TodoItem = ({
66
handleDelete,
77
}: {
88
id: string;
9-
details: { [key: string]: TodoDetails };
9+
details: TodoDetails;
1010
handleDelete: (todoId: string) => void;
1111
}) => {
1212
const todo = useTodo({ id });

0 commit comments

Comments
 (0)