mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #6779 from overleaf/ae-cm-editor-switch
[web] [cm6] Add a three-way switch for editor choice GitOrigin-RevId: fff788ddad8d10488e8446de7f1503702da0985f
This commit is contained in:
@@ -5,7 +5,11 @@ export default function BetaBadge({ tooltip, url = '/beta/participate' }) {
|
||||
return (
|
||||
<OverlayTrigger
|
||||
placement={tooltip.placement || 'bottom'}
|
||||
overlay={<Tooltip id={tooltip.id}>{tooltip.text}</Tooltip>}
|
||||
overlay={
|
||||
<Tooltip id={tooltip.id} className={tooltip.className}>
|
||||
{tooltip.text}
|
||||
</Tooltip>
|
||||
}
|
||||
delayHide={100}
|
||||
>
|
||||
<a
|
||||
@@ -23,8 +27,9 @@ export default function BetaBadge({ tooltip, url = '/beta/participate' }) {
|
||||
BetaBadge.propTypes = {
|
||||
tooltip: PropTypes.exact({
|
||||
id: PropTypes.string.isRequired,
|
||||
text: PropTypes.string.isRequired,
|
||||
text: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
||||
placement: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
}),
|
||||
url: PropTypes.string,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user