2
0

♻️ Better phone input props pass

This commit is contained in:
Baptiste Arnaud
2023-02-27 10:44:52 +01:00
parent 2fc78a5b7d
commit 73ef12db72
2 changed files with 12 additions and 12 deletions

View File

@ -146,7 +146,10 @@ const Input = (props: {
</Match>
<Match when={props.block.type === InputBlockType.PHONE}>
<PhoneInput
block={props.block as PhoneNumberInputBlock}
labels={(props.block as PhoneNumberInputBlock).options.labels}
defaultCountryCode={
(props.block as PhoneNumberInputBlock).options.defaultCountryCode
}
defaultValue={getPrefilledValue()}
onSubmit={onSubmit}
hasGuestAvatar={props.hasGuestAvatar}