// TODO this can be deleted import copy from 'copy-to-clipboard'; import { connect } from 'react-redux'; import styles from './profileSettings.css'; @connect(state => ({ tenantKey: state.getIn([ 'user', 'client', 'tenantKey' ]), })) export default class TenantKey extends React.PureComponent { state = { copied: false } copyHandler = () => { const { tenantKey } = this.props; this.setState({ copied: true }); copy(tenantKey); setTimeout(() => { this.setState({ copied: false }); }, 1000); }; render() { const { tenantKey } = this.props; const { copied } = this.state; return (
); } }