Browse Source

Forgotten import.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
a28fe8bb2d
  1. 4
      bikeshop_project/assets/js/bikes/components/BikeForm/index.jsx
  2. 2
      bikeshop_project/assets/js/bikes/components/BikeForm/utils.jsx

4
bikeshop_project/assets/js/bikes/components/BikeForm/index.jsx

@ -4,7 +4,7 @@ import { connect } from 'react-redux';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import Size from '../Size';
import { renderCheckbox, renderSelectField, renderTextField } from './utils';
import { renderCheckbox, renderSelectField, renderTextField, sourceMenuItems } from './utils';
import { updateBike, saveBike, checkCpic } from '../../actions';
const styles = {
@ -19,8 +19,6 @@ const styles = {
},
};
const validate = (values) => {
const errors = {};
const requiredFields = ['make', 'colour', 'size', 'serial_number', 'donation_source'];

2
bikeshop_project/assets/js/bikes/components/BikeForm/utils.jsx

@ -19,7 +19,7 @@ const friendly = (s) => {
}
};
const sourceMenuItems = sources.map(s =>
export const sourceMenuItems = sources.map(s =>
<MenuItem key={s} value={s} primaryText={friendly(s)} />,
);

Loading…
Cancel
Save