Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Danae Millan committed Apr 19, 2021
1 parent e01c679 commit db9351c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions packages/react-button-icon/lib/react-button-icon.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import React from "react";

const ButtonIcon = React.forwardRef( ({
label,
icon,
design = "solid",
color,
className,
...props
}, ref) => {
const ButtonIcon = ({ label, icon, iconSize, extraClasses, color, design = "solid", ...props }) => {
const loader = (
<span
className="sui-icon-loader sui-loading"
Expand All @@ -23,9 +16,7 @@ const ButtonIcon = React.forwardRef( ({
</React.Fragment>
);

className = '' !== className
? 'sui-button-icon ' + className
: 'sui-button-icon';
let className = `sui-button-icon ${extraClasses || ""}`;

// Set button color.
switch (color) {
Expand Down Expand Up @@ -77,13 +68,12 @@ const ButtonIcon = React.forwardRef( ({

return (
<button
ref={ref}
className={className}
disabled={props.disabled || props.loading}
{...props}>
{props.loading ? loader : content}
</button>
);
});
};

export { ButtonIcon };

0 comments on commit db9351c

Please sign in to comment.