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:
parent
06b0914a88
commit
fb79de2861
1 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue