AppLayout.js
1.59 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
46
47
48
49
50
51
52
53
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 { logout } from '/imports/client/app/utils/loginMethods';
import Signup from '/imports/client/views/nonOrg/enter/SignupView';
import { VerifyModule } from '/imports/client/views/verify/module/index';
import ReactSVG from 'react-svg'
export class AppLayout extends Component {
render() {
const {user, org} = this.props.data;
console.log(user);
if(!user) {
return (
<Signup
/>
);
}
if(!user.isEmailVerified()) {
return (
<VerifyModule
pane = {this.props.location.query.verify}
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">
</div>
</div>
</div>
</div>
</div>
);
};
};