2017-05-01 10:49:27 +09:00
|
|
|
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
2016-04-25 17:02:41 +09:00
|
|
|
import React, { PropTypes, Component } from 'react';
|
2016-03-30 10:52:40 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
const Layout = props =>
|
|
|
|
<div className="wrapper" id="wrapper">
|
2016-02-16 15:08:30 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
<Components.HeadTags />
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
<Components.UsersProfileCheck currentUser={props.currentUser} documentId={props.currentUser && props.currentUser._id} />
|
2016-04-13 08:43:43 +02:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
<Components.Header />
|
|
|
|
|
|
|
|
<div className="main">
|
2016-04-15 11:09:19 +02:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
<Components.FlashMessages />
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
<Components.Newsletter />
|
2016-03-25 11:30:01 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
{props.children}
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<Components.Footer />
|
|
|
|
|
|
|
|
</div>
|
2016-03-25 10:45:28 +09:00
|
|
|
|
2017-05-01 10:49:27 +09:00
|
|
|
registerComponent('Layout', Layout, withCurrentUser);
|