Skip to content

Commit

Permalink
feat: add labels logic
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Apr 5, 2022
1 parent 1563002 commit e054384
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/forms/CreateUnitLabelsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
}}
/>
</InputContainer>
{selectedWayToAddLabel === null && (
<Body size="Small" color="red">
<FormattedMessage id="way-to-add-label" />
</Body>
)}
</StyledFieldContainer>
)}

Expand Down Expand Up @@ -232,6 +237,11 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
}}
/>
</InputContainer>
{selectedLabelOption === null && (
<Body size="Small" color="red">
<FormattedMessage id="select-existing-label" />
</Body>
)}
</StyledFieldContainer>
)}

Expand Down Expand Up @@ -268,6 +278,11 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
}}
/>
</InputContainer>
{selectedProjectLabelOption === null && (
<Body size="Small" color="red">
<FormattedMessage id="select-label-by-project" />
</Body>
)}
</StyledFieldContainer>
)}
</SpanTwoColumnsContainer>
Expand Down

0 comments on commit e054384

Please sign in to comment.