Skip to content

Commit 5f1c9a6

Browse files
committed
With shim for Input
1 parent fe76c44 commit 5f1c9a6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

client/app/bundles/comments/actions/actionPropTypes.js

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

client/app/bundles/comments/components/CommentBox/CommentBox.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import BaseComponent from 'libs/components/BaseComponent';
22
import React, { PropTypes } from 'react';
33

4-
import actionPropTypes from '../../actions/actionPropTypes';
54
import CommentForm from './CommentForm/CommentForm';
65
import CommentList, { CommentPropTypes } from './CommentList/CommentList';
76
import css from './CommentBox.scss';
87

98
export default class CommentBox extends BaseComponent {
109
static propTypes = {
1110
pollInterval: PropTypes.number.isRequired,
12-
actions: actionPropTypes,
11+
actions: PropTypes.shape({
12+
fetchComments: React.PropTypes.function,
13+
}),
1314
data: PropTypes.shape({
1415
isFetching: React.PropTypes.boolean,
1516
isSaving: React.PropTypes.boolean,

client/app/bundles/comments/components/CommentBox/CommentForm/CommentForm.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropTypes } from 'react';
2-
import Input from 'react-bootstrap/lib/Input';
2+
33
import Row from 'react-bootstrap/lib/Row';
44
import Col from 'react-bootstrap/lib/Col';
55
import Nav from 'react-bootstrap/lib/Nav';
@@ -10,6 +10,8 @@ import _ from 'lodash';
1010

1111
import BaseComponent from 'libs/components/BaseComponent';
1212

13+
import Input from '../../Input';
14+
1315
const emptyComment = { author: '', text: '' };
1416
const textPlaceholder = 'Say something using markdown...';
1517

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"postcss-loader": "^1.1.0",
7272
"react": "^15.3.2",
7373
"react-addons-pure-render-mixin": "^15.3.2",
74-
"react-bootstrap": "^0.29.5",
74+
"react-bootstrap": "^0.30.6",
7575
"react-dom": "^15.3.2",
7676
"react-on-rails": "^6.1.2",
7777
"react-redux": "^4.4.5",

0 commit comments

Comments
 (0)