Use Button for ActionButton (#8112)

GitOrigin-RevId: 6ab3937a6d033c5f4d4d27ff471a8a114f74d6a9
This commit is contained in:
Alf Eaton 2022-05-25 08:59:24 +01:00 committed by Copybot
parent 4ca3f9cabf
commit afd5d808a8

View file

@ -105,29 +105,21 @@ function ActionButton({
if (!hasFeature) { if (!hasFeature) {
return ( return (
<a href={upgradePath} className="btn btn-info text-capitalize"> <Button bsStyle="info" href={upgradePath}>
{t('upgrade')} <span className="text-capitalize">{t('upgrade')}</span>
</a> </Button>
) )
} else if (linked) { } else if (linked) {
return ( return (
<button <Button bsStyle="danger" onClick={handleUnlinkClick} disabled={disabled}>
className="btn btn-danger"
onClick={handleUnlinkClick}
disabled={disabled}
>
{t('unlink')} {t('unlink')}
</button> </Button>
) )
} else { } else {
return ( return (
<a <Button bsStyle="info" href={linkPath} disabled={disabled}>
href={linkPath} <span className="text-capitalize">{t('link')}</span>
className="btn btn-info text-capitalize" </Button>
disabled={disabled}
>
{t('link')}
</a>
) )
} }
} }