AppLayout.js
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import _ from 'lodash';
import { Meteor } from 'meteor/meteor';
import React, { Component } from 'react';
import { Link } from 'react-router';
import { Avatar } from '/imports/client/components/Avatar';
import { Icon } from '/imports/client/components/Icon';
import classNames from 'classnames';
import { EnterModule } from '/imports/client/views/org/enter/module/index';
// import { VerifyModule } from '/imports/client/views/verify/module/index';
export class AppLayout extends Component {
render() {
console.log(this.props);
const {user} = this.props.data;
if(!user) {
return (
<EnterModule
pane = {this.props.location.query.enter}
location = {this.props.location}
/>
);
}
return (
<div className = "appLayout-box">
<div className = "appLayout-wrapOuter">
<div className = "appLayout-wrapInner">
<div className = "appLayout-menuWrap">
</div>
<div className = "appLayout-contentWrap">
<div className = "appLayout-content">
{ this.props.children }
</div>
</div>
</div>
</div>
</div>
);
};
};