Skip to content

Commit

Permalink
fix: dates not rendered properly in case of multiple entry tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Jun 3, 2022
1 parent 91871e5 commit 1376854
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/components/forms/CreateUnitLabelsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'way-to-add-label',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -229,7 +230,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'select-existing-label',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -267,7 +269,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'select-label-by-project',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -309,7 +312,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-label-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -347,7 +351,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-label-type-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -388,7 +393,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-label-link-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -427,14 +433,14 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-validity-period-start-date-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<DateSelect
key={value.validityPeriodStartDate}
variant={
errorLabelMessage?.validityPeriodStartDate &&
DateVariantEnum.error
Expand Down Expand Up @@ -462,14 +468,14 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-validity-period-end-date-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<DateSelect
key={value.validityPeriodEndDate}
variant={
errorLabelMessage?.validityPeriodEndDate &&
DateVariantEnum.error
Expand Down Expand Up @@ -497,14 +503,14 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-crediting-period-start-date-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<DateSelect
key={value.creditingPeriodStartDate}
variant={
errorLabelMessage?.creditingPeriodStartDate &&
DateVariantEnum.error
Expand Down Expand Up @@ -532,14 +538,14 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-crediting-period-end-date-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
</StyledLabelContainer>
<InputContainer>
<DateSelect
key={value.creditingPeriodEndDate}
variant={
errorLabelMessage?.creditingPeriodEndDate &&
DateVariantEnum.error
Expand Down Expand Up @@ -567,7 +573,8 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'labels-unit-quantity-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down

0 comments on commit 1376854

Please sign in to comment.