🚸 (inputs) Improve date input response bubble formatting

This commit is contained in:
Baptiste Arnaud
2022-10-01 18:47:29 +02:00
parent 15dbc9577d
commit fac70b9639
3 changed files with 46 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import { DateInputOptions } from 'models'
import React, { useState } from 'react'
import { parseReadableDate } from 'services/inputs'
import { InputSubmitContent } from '../InputChatBlock'
import { SendButton } from './SendButton'
@@ -28,6 +29,7 @@ export const DateForm = ({
value: `${inputValues.from}${
isRange ? ` to ${inputValues.to}` : ''
}`,
label: parseReadableDate({ ...inputValues, hasTime, isRange }),
})
}}
>