1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2025-01-03 12:34:20 +00:00

Use block elements for editables

This commit is contained in:
Steffo 2022-07-16 17:43:45 +02:00
parent 06b0914a88
commit fb79de2861
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -19,7 +19,7 @@ export const EditableText = (props: TextInputProps) => {
<input type="text" {...props} /> <input type="text" {...props} />
} }
view={ view={
<span>{props.value}</span> <div>{props.value}</div>
} }
/> />
) )
@ -75,7 +75,9 @@ export const EditableDateTimeLocal = (props: TextInputProps) => {
/> />
} }
view={ view={
<FestaMoment date={new Date(props.value)} /> <div>
<FestaMoment date={new Date(props.value)} />
</div>
} }
/> />
) )