1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00

fixing linting errors

This commit is contained in:
Alex Windett 2017-01-23 16:26:40 +00:00
parent 16d67e9a47
commit 139247fc09
3 changed files with 21 additions and 14 deletions

View File

@ -1,5 +1,6 @@
const React = require('react'); const React = require('react');
// const PropTypes = require('@root/prop-types');
const Row = require('@ui/components/row'); const Row = require('@ui/components/row');
const Column = require('@ui/components/column'); const Column = require('@ui/components/column');
const Button = require('@ui/components/button'); const Button = require('@ui/components/button');
@ -8,9 +9,9 @@ const SelectCustom = require('@ui/components/select-custom');
const Invite = (props) => { const Invite = (props) => {
const { const {
people = [], // people = [],
handleToggle, handleToggle,
platformMembers // platformMembers
} = props; } = props;
const InputStyle = { const InputStyle = {
@ -63,14 +64,15 @@ const Invite = (props) => {
<Row> <Row>
<Column xs={12}> <Column xs={12}>
<SelectCustom <SelectCustom
placeholder="Enter an email address or password"
multi multi
onChange={function noop() {}} onChange={function noop() {}}
options={selectData} options={selectData}
placeholder="Enter an email address or password"
style={InputStyle}
/> />
<Button <Button
style={AddButtonStyle}
secondary secondary
style={AddButtonStyle}
> >
Add Add
</Button> </Button>
@ -78,9 +80,9 @@ const Invite = (props) => {
</Row> </Row>
<Button <Button
onClick={handleToggle}
secondary secondary
style={styleInline} style={styleInline}
onClick={handleToggle}
> >
Cancel Cancel
</Button> </Button>
@ -97,8 +99,8 @@ const Invite = (props) => {
Invite.propTypes = { Invite.propTypes = {
handleToggle: React.PropTypes.func, handleToggle: React.PropTypes.func,
orgUI: React.PropTypes.obj, // orgUI: React.PropTypes.obj,
people: React.PropTypes.arrayOf(PropTypes.person) // people: React.PropTypes.arrayOf(PropTypes.person)
}; };
module.exports = Invite; module.exports = Invite;

View File

@ -86,12 +86,15 @@ module.exports = {
}, },
{ {
test: /\.css$/, test: /\.css$/,
exclude: /node_modules/, loader: 'style-loader!css-loader'
loaders: [ 'style-loader', 'css-loader' ], // XXXX : Commenting out breaks node_modules that use css
include: [ // i.e react-select.
FRONTEND,
UI // exclude: /node_modules/,
] // include: [
// FRONTEND,
// UI
// ]
}] }]
} }
}; };

View File

@ -38,11 +38,12 @@ const SelectCustom = ({
onChange, onChange,
options, options,
required = false, required = false,
style,
value = '' value = ''
}) => { }) => {
return ( return (
<div> <div style={style}>
<StyledLabel> <StyledLabel>
{label} {label}
</StyledLabel> </StyledLabel>
@ -76,6 +77,7 @@ SelectCustom.propTypes = {
onChange: React.PropTypes.func, onChange: React.PropTypes.func,
options: React.PropTypes.array, options: React.PropTypes.array,
required: React.PropTypes.bool, required: React.PropTypes.bool,
style: React.PropTypes.object,
value: React.PropTypes.string value: React.PropTypes.string
}; };