Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #552 button #942

Merged
merged 4 commits into from
Nov 6, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
New structure for correct testing.
IanCStewart committed Nov 6, 2017
commit e411d71a11ac691ef901e1ec642f5386606597c3
10 changes: 1 addition & 9 deletions src/button/index.jsx → src/button/component.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import Radium from 'radium';
import getStyles from './get-styles';
import themeable from '../themeable';

/** General purpose button with three types */
const Button = ({
@@ -52,9 +49,4 @@ Button.defaultProps = {
flatButton: false
};

const enhance = compose(
themeable(),
Radium
);

export default enhance(Button);
export default Button;
11 changes: 11 additions & 0 deletions src/button/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Radium from 'radium';
import compose from 'recompose/compose';
import themeable from '../themeable';
import Button from './component';

const enhance = compose(
themeable(),
Radium
);

export default enhance(Button);