Add property type email

This commit is contained in:
Renjith 2021-03-18 01:36:03 -05:00
parent 2681b8900a
commit d6950c27bb
2 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export default class PropertyValueElement extends React.Component<Props, State>
)
}
if (propertyTemplate.type === 'text' || propertyTemplate.type === 'number') {
if (propertyTemplate.type === 'text' || propertyTemplate.type === 'number' || propertyTemplate.type === 'email') {
if (!readOnly) {
return (
<Editable

View File

@ -104,6 +104,11 @@ class PropertyMenu extends React.PureComponent<Props, State> {
name='Number'
onClick={() => this.props.onTypeChanged('number')}
/>
<Menu.Text
id='email'
name='Email'
onClick={() => this.props.onTypeChanged('email')}
/>
<Menu.Text
id='select'
name='Select'