Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Remove redundant code from comoponents/button.js
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Aug 21, 2016
1 parent 0f413d5 commit 2ef3c1d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ import React, { PropTypes } from 'react';
const Button = ({ color, size, className, waiting, title, type, ...props }) => {
let icon = null;
let cn = 'button action';
let t = 'button';

if (type) {
t = type;
}

if (className) {
cn += ` ${className}`;
Expand All @@ -48,7 +43,7 @@ const Button = ({ color, size, className, waiting, title, type, ...props }) => {
}

return (
<button className={cn} title={title} type={t} {...props}>
<button className={cn} title={title} type={type || 'button'} {...props}>
{icon}
{title}
</button>
Expand Down

0 comments on commit 2ef3c1d

Please sign in to comment.