import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; import BaseAuthBody from 'app/components/auth/BaseAuthBody'; import { AccountSwitcher } from 'app/components/accounts'; import { Account } from 'app/components/accounts/reducer'; import styles from './chooseAccount.scss'; export default class ChooseAccountBody extends BaseAuthBody { static displayName = 'ChooseAccountBody'; static panelId = 'chooseAccount'; render() { const { client } = this.context.auth; return (
{this.renderErrors()}
{client ? ( {client.name}, }} /> ) : (
)}
); } onSwitch = (account: Account): void => { this.context.resolve(account); }; }