feat(web/input): time input field (#206)

* feat(web/input): time input
This commit is contained in:
masonschafercodes
2023-01-31 12:41:42 -05:00
committed by GitHub
parent ada2a35c0b
commit 8a7e0f89d2
4 changed files with 33 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ const InputDialog: React.FC = () => {
{
value:
row.type !== 'checkbox'
? row.type === 'date' || row.type === 'date-range'
? row.type === 'date' || row.type === 'date-range' || row.type === 'time'
? // Set date to current one if default is set to true
row.default === true
? new Date().getTime()
@@ -146,7 +146,7 @@ const InputDialog: React.FC = () => {
{row.type === 'number' && <NumberField control={form.control} row={row} index={index} />}
{row.type === 'slider' && <SliderField control={form.control} row={row} index={index} />}
{row.type === 'color' && <ColorField control={form.control} row={row} index={index} />}
{row.type === 'date' || row.type === 'date-range' ? (
{row.type === 'date' || row.type === 'date-range' || row.type === 'time' ? (
<DateField control={form.control} row={row} index={index} />
) : null}
{row.type === 'textarea' && (