/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import React, { PropTypes } from 'react'; import Reflux from 'reflux'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './UserOverview.scss'; import Moment from 'react-moment'; import UserStore from '../../stores/UserStore'; import Modal from '../NewModal'; import EditProfile from '../EditProfile'; const title = 'User Overview'; class UserOverview extends Reflux.Component { constructor(props) { super(props) this.store = UserStore this.state = { showModal: false } } static contextTypes = { onSetTitle: PropTypes.func.isRequired, }; componentWillMount() { super.componentWillMount.call(this) this.context.onSetTitle(title); } handleChangeNotifications() { } closeModal() { this.setState({ showModal: false }) } openModal() { this.setState({ showModal: true }) } render() { let item = this.state.currentUser return (
Name
{item.name}
Member Since
{/*
Project Membership (4)
My_Project, PRO-1, Coriolis-test, lala-land

*/}
Email
{item.email}
{/*
Email Notifications
Receive notifications
*/} {/*
*/}
this.closeModal(e)} user={this.state.currentUser} />
); } } export default withStyles(UserOverview, s);