Skip to content

Commit

Permalink
Fixing the linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouhamadou Diouf committed Mar 5, 2020
1 parent 2a19495 commit 7a8b61f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import React from 'react';
import Proptypes from 'prop-types';
import '../Button.css';

const button = ({name, color, wide}) => {
return (
<button type="button" className="Button" style={{ background: color, width: wide === true ? '50%' : '25%' }}>{name}</button>
);
};
const button = ({ name, color, wide }) => (
<button type="button" className="Button" style={{ background: color, width: wide === true ? '50%' : '25%' }}>{name}</button>
);

button.defaultProps = {
name: '',
Expand Down

0 comments on commit 7a8b61f

Please sign in to comment.