Skip to content

Commit

Permalink
fix: edit project cannot be submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Feb 11, 2022
1 parent dc8098b commit 73b4b4a
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/components/forms/CreateIssuanceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,37 +127,29 @@ const CreateIssuanceForm = ({ value, onChange, issuanceRef }) => {
<StyledLabelContainer>
<Body>
<LabelContainer>
*<FormattedMessage id="verification-approach" />
*<FormattedMessage id="verification-report-date" />
</LabelContainer>
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'issuances-verification-approach-description',
id: 'issuances-verification-report-date-description',
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<StandardInput
variant={
errorIssuanceMessage?.verificationApproach &&
InputVariantEnum.error
}
size={InputSizeEnum.large}
placeholderText={intl.formatMessage({
id: 'verification-approach',
})}
state={InputStateEnum.default}
value={value.verificationApproach}
onChange={changeValue =>
onInputChange('verificationApproach', changeValue)
<DateSelect
size="large"
dateValue={value.verificationReportDate}
setDateValue={changeValue =>
onInputChange('verificationReportDate', changeValue)
}
/>
</InputContainer>
{errorIssuanceMessage?.verificationApproach && (
{errorIssuanceMessage?.verificationReportDate && (
<Body size="Small" color="red">
{errorIssuanceMessage.verificationApproach}
{errorIssuanceMessage.verificationReportDate}
</Body>
)}
</StyledFieldContainer>
Expand All @@ -167,29 +159,37 @@ const CreateIssuanceForm = ({ value, onChange, issuanceRef }) => {
<StyledLabelContainer>
<Body>
<LabelContainer>
*<FormattedMessage id="verification-report-date" />
*<FormattedMessage id="verification-approach" />
</LabelContainer>
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'issuances-verification-report-date-description',
id: 'issuances-verification-approach-description',
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<DateSelect
size="large"
dateValue={value.verificationReportDate}
setDateValue={changeValue =>
onInputChange('verificationReportDate', changeValue)
<StandardInput
variant={
errorIssuanceMessage?.verificationApproach &&
InputVariantEnum.error
}
size={InputSizeEnum.large}
placeholderText={intl.formatMessage({
id: 'verification-approach',
})}
state={InputStateEnum.default}
value={value.verificationApproach}
onChange={changeValue =>
onInputChange('verificationApproach', changeValue)
}
/>
</InputContainer>
{errorIssuanceMessage?.verificationReportDate && (
{errorIssuanceMessage?.verificationApproach && (
<Body size="Small" color="red">
{errorIssuanceMessage.verificationReportDate}
{errorIssuanceMessage.verificationApproach}
</Body>
)}
</StyledFieldContainer>
Expand Down

0 comments on commit 73b4b4a

Please sign in to comment.