mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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) {
|
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>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue