Skip to content

Commit

Permalink
chore: remove dead condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekA1509 committed Feb 27, 2024
1 parent fcacb41 commit ce24907
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/Shared/Components/KeyValueList/KeyValueList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,16 @@ const KeyValueList = ({

return (
<>
{!isDisabled && (
<ConditionalWrap condition={isDisabled} wrap={renderDisabledInfoTippy}>
<button
className="p-0 cb-5 fw-6 fs-13 flex content-fit lh-32 dc__no-background dc__no-border dc__outline-none-imp dc__tab-focus"
onClick={handleAddParameter}
type="button"
>
<span className="fa fa-plus mr-8" />
{addButtonText}
</button>
</ConditionalWrap>
)}
<ConditionalWrap condition={isDisabled} wrap={renderDisabledInfoTippy}>
<button
className="p-0 cb-5 fw-6 fs-13 flex content-fit lh-32 dc__no-background dc__no-border dc__outline-none-imp dc__tab-focus"
onClick={handleAddParameter}
type="button"
>
<span className="fa fa-plus mr-8" />
{addButtonText}
</button>
</ConditionalWrap>

{keyValueList.length > 0 &&
keyValueList.map((keyValueGroup, index) => (
Expand Down

0 comments on commit ce24907

Please sign in to comment.