Skip to content

Commit

Permalink
Use React.Fragment instead of <>
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-instant committed Nov 5, 2020
1 parent 5714991 commit daa2f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CheckboxUnchecked = props =>

const CheckboxIcon = ({iconName ,checkedIconName, uncheckedIconName, size = '24px' , ...props }) =>
{
return (<>
return (<React.Fragment>
{
(iconName || checkedIconName) ? <Icon size={size}
name={iconName || checkedIconName}
Expand Down Expand Up @@ -74,7 +74,7 @@ const CheckboxIcon = ({iconName ,checkedIconName, uncheckedIconName, size = '24



</>)}
</React.Fragment>)}



Expand Down
4 changes: 2 additions & 2 deletions src/components/Form/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const RadioUnchecked = props =>

const RadioIcon = ({iconName ,checkedIconName, uncheckedIconName, size = '24px' , ...props }) =>
{
return (<>
return (<React.Fragment>
{
(iconName || checkedIconName) ? <Icon size={size}
name={iconName || checkedIconName}
Expand Down Expand Up @@ -97,7 +97,7 @@ const RadioIcon = ({iconName ,checkedIconName, uncheckedIconName, size = '24px'



</>)}
</React.Fragment>)}



Expand Down

0 comments on commit daa2f83

Please sign in to comment.