Skip to content

Commit

Permalink
Remove unnecessary if
Browse files Browse the repository at this point in the history
  • Loading branch information
jsomsanith committed Jun 28, 2019
1 parent 3bb78f2 commit 75a6d3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ const StyledButton = styled.button`
const ButtonLink = StyledButton.withComponent('a');

const applyStyle = ButtonWrapper => {
if (!ButtonWrapper) {
return null;
}

return (
ButtonWrapper &&
StyledButton.withComponent(({ containsIcon, isLoading, isUnclickable, ...rest }) => (
Expand Down

0 comments on commit 75a6d3d

Please sign in to comment.