Skip to content

Commit

Permalink
fix: render icon if provided to FieldLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
leweyse authored and chrisvxd committed Oct 4, 2023
1 parent 2bf48af commit ae01891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/InputOrGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const FieldLabel = ({
return (
<label>
<div className={getClassName("label")}>
{icon && <div className={getClassName("labelIcon")}></div>}
{icon ? <div className={getClassName("labelIcon")}>{icon}</div> : <></>}
{label}
</div>
{children}
Expand Down

0 comments on commit ae01891

Please sign in to comment.