Skip to content

Commit

Permalink
add About page
Browse files Browse the repository at this point in the history
  • Loading branch information
borisvida committed Nov 15, 2016
1 parent 1313f7d commit ee42c83
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
root = true

[*]
end_of_line = lf
end_of_line = crlf
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);
});
});
8 changes: 8 additions & 0 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ export default function createRoutes(store) {

importModules.catch(errorLoading);
},
}, {
path: '/about',
name: 'about',
getComponent(location, cb) {
System.import('components/About')
.then(loadModule(cb))
.catch(errorLoading);
},
}, {
path: '*',
name: 'notfound',
Expand Down

0 comments on commit ee42c83

Please sign in to comment.