mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use Button for ActionButton (#8112)
GitOrigin-RevId: 6ab3937a6d033c5f4d4d27ff471a8a114f74d6a9
This commit is contained in:
parent
4ca3f9cabf
commit
afd5d808a8
1 changed files with 8 additions and 16 deletions
|
@ -105,29 +105,21 @@ function ActionButton({
|
|||
|
||||
if (!hasFeature) {
|
||||
return (
|
||||
<a href={upgradePath} className="btn btn-info text-capitalize">
|
||||
{t('upgrade')}
|
||||
</a>
|
||||
<Button bsStyle="info" href={upgradePath}>
|
||||
<span className="text-capitalize">{t('upgrade')}</span>
|
||||
</Button>
|
||||
)
|
||||
} else if (linked) {
|
||||
return (
|
||||
<button
|
||||
className="btn btn-danger"
|
||||
onClick={handleUnlinkClick}
|
||||
disabled={disabled}
|
||||
>
|
||||
<Button bsStyle="danger" onClick={handleUnlinkClick} disabled={disabled}>
|
||||
{t('unlink')}
|
||||
</button>
|
||||
</Button>
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<a
|
||||
href={linkPath}
|
||||
className="btn btn-info text-capitalize"
|
||||
disabled={disabled}
|
||||
>
|
||||
{t('link')}
|
||||
</a>
|
||||
<Button bsStyle="info" href={linkPath} disabled={disabled}>
|
||||
<span className="text-capitalize">{t('link')}</span>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue