2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-13 16:26:12 +02:00
|
|
|
import React from 'react';
|
2015-05-15 15:38:25 +02:00
|
|
|
import Router from 'react-router';
|
2015-05-20 16:19:40 +02:00
|
|
|
import Header from '../components/header';
|
2015-07-02 15:41:17 +02:00
|
|
|
import Footer from '../components/footer';
|
2015-06-08 18:14:25 +02:00
|
|
|
import GlobalNotification from './global_notification';
|
2015-05-15 15:38:25 +02:00
|
|
|
|
2015-08-27 14:34:15 +02:00
|
|
|
import getRoutes from '../routes';
|
|
|
|
|
2015-05-13 16:26:12 +02:00
|
|
|
|
2015-08-27 14:34:15 +02:00
|
|
|
let RouteHandler = Router.RouteHandler;
|
2015-05-18 18:00:12 +02:00
|
|
|
|
2015-05-20 12:00:16 +02:00
|
|
|
let AscribeApp = React.createClass({
|
2015-05-18 18:00:12 +02:00
|
|
|
render() {
|
|
|
|
return (
|
2015-07-13 14:29:20 +02:00
|
|
|
<div className="container ascribe-default-app">
|
2015-08-27 14:34:15 +02:00
|
|
|
<Header routes={getRoutes()} />
|
2015-05-18 18:00:12 +02:00
|
|
|
<RouteHandler />
|
2015-07-02 15:41:17 +02:00
|
|
|
<Footer />
|
2015-06-08 18:14:25 +02:00
|
|
|
<GlobalNotification />
|
|
|
|
<div id="modal" className="container"></div>
|
2015-06-05 11:06:36 +02:00
|
|
|
</div>
|
2015-05-18 18:00:12 +02:00
|
|
|
);
|
|
|
|
}
|
2015-05-20 12:00:16 +02:00
|
|
|
});
|
2015-05-13 16:26:12 +02:00
|
|
|
|
2015-05-18 09:31:22 +02:00
|
|
|
export default AscribeApp;
|