Skip to content

Commit

Permalink
Merge pull request #193 from ediazgallego/153-attribute-improvements
Browse files Browse the repository at this point in the history
153: Attribute information improvements
  • Loading branch information
vishnoianil authored Sep 23, 2024
2 parents 336dd9f + e34c3ca commit 5e4c212
Showing 1 changed file with 19 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,6 @@ const AttributionInformation: React.FC<Props> = ({
}
>
<FormGroup isRequired key={'attribution-info-details-id'}>
<TextInput
isRequired
type="text"
aria-label="title_work"
placeholder="Enter title of work"
validated={validTitle}
value={titleWork}
onChange={(_event, value) => setTitleWork(value)}
onBlur={() => validateTitle(titleWork)}
/>
{validTitle === ValidatedOptions.error && (
<FormHelperText>
<HelperText>
<HelperTextItem icon={<ExclamationCircleIcon />} variant={validTitle}>
Title is required.
</HelperTextItem>
</HelperText>
</FormHelperText>
)}

<TextInput
isRequired
type="url"
Expand Down Expand Up @@ -194,6 +174,25 @@ const AttributionInformation: React.FC<Props> = ({
</HelperText>
</FormHelperText>
)}
<TextInput
isRequired
type="text"
aria-label="title_work"
placeholder="Enter title of work"
validated={validTitle}
value={titleWork}
onChange={(_event, value) => setTitleWork(value)}
onBlur={() => validateTitle(titleWork)}
/>
{validTitle === ValidatedOptions.error && (
<FormHelperText>
<HelperText>
<HelperTextItem icon={<ExclamationCircleIcon />} variant={validTitle}>
Title is required.
</HelperTextItem>
</HelperText>
</FormHelperText>
)}
<TextInput
isRequired
type="text"
Expand Down

0 comments on commit 5e4c212

Please sign in to comment.