More component maxlengths

This commit is contained in:
Will O'Beirne 2019-03-18 14:47:46 -04:00
parent adc2fd4d63
commit 0ce35629a2
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
2 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class CreateFlowBasics extends React.Component<Props, State> {
value={target}
onChange={this.handleInputChange}
addonAfter="ZEC"
maxLength={20}
maxLength={16}
/>
</Form.Item>
</Form>

View File

@ -124,6 +124,7 @@ const MilestoneFields = ({
name="title"
value={milestone.title}
onChange={ev => onChange(index, { ...milestone, title: ev.currentTarget.value })}
maxLength={80}
/>
<button
onClick={() => onRemove(index)}
@ -147,6 +148,7 @@ const MilestoneFields = ({
onChange={ev =>
onChange(index, { ...milestone, content: ev.currentTarget.value })
}
maxLength={255}
/>
</div>
@ -190,6 +192,7 @@ const MilestoneFields = ({
}
addonAfter="%"
style={{ maxWidth: '120px', width: '100%' }}
maxLength={6}
/>
{index === 0 && (
<div style={{ display: 'flex', alignItems: 'center', marginLeft: '0.5rem' }}>