import React, { PropTypes } from 'react'; import { FormattedMessage as Message } from 'react-intl'; import Helmet from 'react-helmet'; import buttons from 'components/ui/buttons.scss'; import icons from 'components/ui/icons.scss'; import { PanelBodyHeader } from 'components/ui/Panel'; import BaseAuthBody from 'components/auth/BaseAuthBody'; import styles from './permissions.scss'; import messages from './Permissions.messages'; class Body extends BaseAuthBody { static displayName = 'PermissionsBody'; static panelId = 'permissions'; render() { const {user} = this.context; const scopes = this.context.auth.scopes; return (
{this.renderErrors()}
{user.avatar ? : }
{user.email}

); } } export default function Permissions() { const componentsMap = { Title: () => ( // TODO: separate component for PageTitle {(msg) => {msg}} ), Body, Footer: () => ( ), Links: (props, context) => ( { event.preventDefault(); context.reject(); }}> ) }; componentsMap.Links.contextTypes = { reject: PropTypes.func.isRequired }; return componentsMap; }