Skip to content

Commit 7faf6b2

Browse files
author
daniel.gomez
committed
Updated project to user redux-autoform-utils to use the ComponentFactory and the Utils methods,
1 parent 4a57c09 commit 7faf6b2

File tree

11 files changed

+6
-345
lines changed

11 files changed

+6
-345
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redux-autoform-bootstrap-ui",
33
"version": "1.0.0",
44
"description": "Bootstrap UI implementation for redux-autoform",
5-
"main": "index.js",
5+
"main": "./src/index.js",
66
"scripts": {
77
"test": "mocha ./test --compilers js:babel-register"
88
},
@@ -28,6 +28,7 @@
2828
"react-bootstrap": "^0.30.0-rc.1",
2929
"react-select": "^1.0.0-beta14",
3030
"react-widgets": "^3.4.2",
31+
"redux-autoform-utils": "^1.0.3",
3132
"underscore": "^1.8.3"
3233
},
3334
"devDependencies": {

src/components/FormGroupInline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';
22
import { FormGroup as BootstrapFormGroup } from 'react-bootstrap';
33
import FormGroupInlineControlLabel from './FormGroupInlineControlLabel';
44
import FormGroupInlineContent from './FormGroupInlineContent'
5-
import { getDisplayName } from '../helpers/metadataHelper'; // TODO Move to Util Repo
5+
import { getDisplayName } from 'redux-autoform-utils';
66

77
class FormGroupInline extends Component {
88
static propTypes = {

src/components/fieldComponents/CheckBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { getDisplayName } from '../../helpers/metadataHelper'; // TODO Move to Util Repo
2+
import { getDisplayName } from 'redux-autoform-utils';
33
import { Checkbox as BootstrapCheckbox } from 'react-bootstrap';
44
import Col from 'react-bootstrap/lib/Col';
55

src/components/fieldComponents/DateTimePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component, PropTypes } from 'react';
22
import {DateTimePicker as ReactWidgetsDateTimePicker} from 'react-widgets';
3-
import { getDateLocalizer } from '../../localization/dateLocalizer'; // TODO Move to Util Repo
3+
import { getDateLocalizer } from 'redux-autoform-utils';
44
import FormGroup from '../FormGroup';
55

66
class DateTimePicker extends Component {

src/factory/BootstrapFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ComponentFactory from './ComponentFactory'; //TODO Move to Util repo
1+
import { ComponentFactory } from 'redux-autoform-utils';
22
import { registerBaseComponents } from './helper/BootstrapComponentFactoryHelper';
33

44
class BootstrapFactory extends ComponentFactory {

src/factory/ComponentFactory.js

Lines changed: 0 additions & 194 deletions
This file was deleted.

src/helpers/metadataHelper.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/localization/dateLocalizer.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/localization/momentLocalizer.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/localization/numberLocalizer.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)