1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Fix value type in EditablePostcard

This commit is contained in:
Steffo 2022-06-08 02:40:14 +02:00
parent 23ec8c738b
commit 9f6e213374
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -4,7 +4,7 @@ import { useDefinedContext } from "../../utils/definedContext";
import { Postcard } from "../postcard/Postcard"; import { Postcard } from "../postcard/Postcard";
export function EditablePostcard({value, ...props}: HTMLProps<HTMLInputElement>) { export function EditablePostcard({value, ...props}: HTMLProps<HTMLInputElement> & {value: string | undefined}) {
const [editing,] = useDefinedContext(EditingContext) const [editing,] = useDefinedContext(EditingContext)
return <> return <>