Skip to content

Commit d17119a

Browse files
committed
Rename stores folder to store
Rename stores folder to store Fix components path in specs Fix `getDOMNode` warning on `CommentForm.jsx`
1 parent 956151e commit d17119a

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

client/app/bundles/Comments/components/CommentForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class CommentForm extends React.Component {
4646
comment = {
4747
// This is different because the input is a native HTML element
4848
// rather than a React element.
49-
author: this.refs.inlineAuthor.getDOMNode().value,
50-
text: this.refs.inlineText.getDOMNode().value,
49+
author: this.refs.inlineAuthor.value,
50+
text: this.refs.inlineText.value,
5151
};
5252
}
5353

client/app/bundles/Comments/startup/ClientApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
33

4-
import createStore from '../stores/commentsStore';
4+
import createStore from '../store/commentsStore';
55
import NonRouterCommentScreen from '../components/NonRouterCommentScreen';
66

77
const App = props => {

client/app/bundles/Comments/startup/ClientRouterApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Provider } from 'react-redux';
33
import Router from 'react-router';
44
import createHistory from 'history/lib/createBrowserHistory';
55

6-
import createStore from '../stores/commentsStore';
6+
import createStore from '../store/commentsStore';
77
import routes from '../routes/routes';
88

99
const RouterApp = (props, location) => {

client/app/bundles/Comments/startup/ServerApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
33

4-
import createStore from '../stores/commentsStore';
4+
import createStore from '../store/commentsStore';
55
import NonRouterCommentScreen from '../components/NonRouterCommentScreen';
66

77
const App = props => {

client/app/bundles/Comments/startup/ServerRouterApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { Provider } from 'react-redux';
33
import { match, RoutingContext } from 'react-router';
44

5-
import createStore from '../stores/commentsStore';
5+
import createStore from '../store/commentsStore';
66
import routes from '../routes/routes';
77

88
const RouterApp = (props, location) => {

client/test/components/CommentList_spec.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { React, expect, TestUtils } from '../test_helper';
22
import { List, Map } from 'immutable';
3-
import CommentList from '../../app/components/CommentList';
4-
import Comment from '../../app/components/Comment';
3+
import CommentList from '../../app/bundles/Comments/components/CommentList';
4+
import Comment from '../../app/bundles/Comments/components/Comment';
55

66
const {
77
renderIntoDocument,

client/test/components/Comment_spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { React, expect, TestUtils } from '../test_helper';
2-
import Comment from '../../app/components/Comment';
2+
import Comment from '../../app/bundles/Comments/components/Comment';
33

44
const {
55
renderIntoDocument,

0 commit comments

Comments
 (0)