|
|
|
@ -39,7 +39,7 @@ export default class ConnectedAccountsListPermissions extends PureComponent { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="connected-accounts-permissions"> |
|
|
|
|
<p className="connected-accounts-permissions__header"> |
|
|
|
|
<p className="connected-accounts-permissions__header" onClick={this.toggleExpanded}> |
|
|
|
|
<strong>{t('permissions')}</strong> |
|
|
|
|
<button |
|
|
|
|
className={classnames('fas', { |
|
|
|
@ -47,25 +47,23 @@ export default class ConnectedAccountsListPermissions extends PureComponent { |
|
|
|
|
'fa-angle-up': expanded, |
|
|
|
|
})} |
|
|
|
|
title={t('showPermissions')} |
|
|
|
|
onClick={this.toggleExpanded} |
|
|
|
|
/> |
|
|
|
|
</p> |
|
|
|
|
{ |
|
|
|
|
expanded |
|
|
|
|
? ( |
|
|
|
|
<> |
|
|
|
|
<p>{t('authorizedPermissions')}:</p> |
|
|
|
|
<ul className="connected-accounts-permissions__list"> |
|
|
|
|
{permissions.map(({ key, description }) => ( |
|
|
|
|
<li key={key} className="connected-accounts-permissions__list-item"> |
|
|
|
|
<i className="fas fa-check-square" /> {description} |
|
|
|
|
</li> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
</> |
|
|
|
|
) |
|
|
|
|
: null |
|
|
|
|
} |
|
|
|
|
<div |
|
|
|
|
className={classnames('connected-accounts-permissions__list-container', { |
|
|
|
|
'connected-accounts-permissions__list-container--expanded': expanded, |
|
|
|
|
})} |
|
|
|
|
> |
|
|
|
|
<p>{t('authorizedPermissions')}:</p> |
|
|
|
|
<ul className="connected-accounts-permissions__list"> |
|
|
|
|
{permissions.map(({ key, description }) => ( |
|
|
|
|
<li key={key} className="connected-accounts-permissions__list-item"> |
|
|
|
|
<i className="fas fa-check-square" /> {description} |
|
|
|
|
</li> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|