import React, { Component, Fragment } from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import { List } from 'antd'; // import { getTimeDistance } from '../../../utils/utils'; const passwordStrength = { strong: ( ), medium: ( ), weak: ( Weak ), }; class SecurityView extends Component { getData = () => { const { intl } = this.props; return [ { title: intl.formatMessage({ id: 'app.settings.security.password' }, {}), description: ( {' '} {intl.formatMessage({ id: 'app.settings.security.password-description' }, {})}:{ passwordStrength.strong } ), actions: [ , ], }, { title: intl.formatMessage({ id: 'app.settings.security.phone' }, {}), description: `${intl.formatMessage( { id: 'app.settings.security.phone-description' }, {} )}:138****8293`, actions: [ , ], }, { title: intl.formatMessage({ id: 'app.settings.security.question' }, {}), description: intl.formatMessage({ id: 'app.settings.security.question-description' }, {}), actions: [ , ], }, { title: intl.formatMessage({ id: 'app.settings.security.email' }, {}), description: `${intl.formatMessage( { id: 'app.settings.security.email-description' }, {} )}:ant***sign.com`, actions: [ , ], }, { title: intl.formatMessage({ id: 'app.settings.security.mfa' }, {}), description: intl.formatMessage({ id: 'app.settings.security.mfa-description' }, {}), actions: [ , ], }, ]; }; render() { return ( ( )} /> ); } } export default injectIntl(SecurityView);