Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
borisvida committed Nov 15, 2016
2 parents 23a5637 + ee42c83 commit 4858de4
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
root = true

[*]
<<<<<<< HEAD
end_of_line = lf
=======
end_of_line = crlf
>>>>>>> ee42c83e39ef2a5bc939b6a0b9e3e562e30f278f
insert_final_newline = false
indent_style = space
indent_size = 2
17 changes: 17 additions & 0 deletions app/components/About/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint linebreak-style: ["error", "windows"]*/

import React from 'react';

import { FormattedMessage } from 'react-intl';
import messages from './messages';


function About() {
return (
<div>
<FormattedMessage {...messages.header} />
</div>
);
}

export default About;
14 changes: 14 additions & 0 deletions app/components/About/messages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint linebreak-style: ["error", "windows"]*/
/*
* About Messages
*
* This contains all the text for the About component.
*/
import { defineMessages } from 'react-intl';

export default defineMessages({
header: {
id: 'app.components.About.header',
defaultMessage: 'This is the About component !',
},
});
11 changes: 11 additions & 0 deletions app/components/About/tests/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// import About from '../index';

import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';

describe('<About />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
2 changes: 1 addition & 1 deletion app/containers/HomePage/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.components.HomePage.header',
defaultMessage: 'This is HomePage components !',
defaultMessage: 'This is HomePage components!',
},
});
11 changes: 11 additions & 0 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ export default function createRoutes(store) {
importModules.catch(errorLoading);
},
}, {
<<<<<<< HEAD
=======
path: '/about',
name: 'about',
getComponent(location, cb) {
System.import('components/About')
.then(loadModule(cb))
.catch(errorLoading);
},
}, {
>>>>>>> ee42c83e39ef2a5bc939b6a0b9e3e562e30f278f
path: '*',
name: 'notfound',
getComponent(nextState, cb) {
Expand Down

0 comments on commit 4858de4

Please sign in to comment.