mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #8511 from overleaf/em-stop-on-first-error-info-badge
Replace stop-on-first-error beta badge with info badge GitOrigin-RevId: d0f8d1c6e960646bd257aeaf5efc21b23615242b
This commit is contained in:
+3
-22
@@ -1,4 +1,4 @@
|
||||
import { useCallback, useMemo } from 'react'
|
||||
import { useCallback } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { Button } from 'react-bootstrap'
|
||||
@@ -7,7 +7,7 @@ import Icon from '../../../shared/components/icon'
|
||||
import getMeta from '../../../utils/meta'
|
||||
import { useDetachCompileContext as useCompileContext } from '../../../shared/context/detach-compile-context'
|
||||
import { useStopOnFirstError } from '../../../shared/hooks/use-stop-on-first-error'
|
||||
import BetaBadge from '../../../shared/components/beta-badge'
|
||||
import StopOnFirstErrorBadge from '../../../shared/components/stop-on-first-error-badge'
|
||||
|
||||
function PreviewLogsPaneMaxEntries({ totalEntries, entriesShown, hasErrors }) {
|
||||
const { t } = useTranslation()
|
||||
@@ -29,22 +29,6 @@ function PreviewLogsPaneMaxEntries({ totalEntries, entriesShown, hasErrors }) {
|
||||
setAnimateCompileDropdownArrow(true)
|
||||
}, [enableStopOnFirstError, startCompile, setAnimateCompileDropdownArrow])
|
||||
|
||||
const betaBadgeTooltip = useMemo(
|
||||
() => ({
|
||||
id: 'stop-on-first-error-tooltip',
|
||||
placement: 'bottom',
|
||||
className: 'tooltip-wide',
|
||||
text: (
|
||||
<>
|
||||
We are beta testing the “Stop on first error” compilation mode.
|
||||
<br />
|
||||
Click to give feedback
|
||||
</>
|
||||
),
|
||||
}),
|
||||
[]
|
||||
)
|
||||
|
||||
return (
|
||||
<div className="log-entry" aria-label={t('log_entry_maximum_entries')}>
|
||||
<PreviewLogEntryHeader level="raw" headerTitle={title} />
|
||||
@@ -73,10 +57,7 @@ function PreviewLogsPaneMaxEntries({ totalEntries, entriesShown, hasErrors }) {
|
||||
),
|
||||
}}
|
||||
/>{' '}
|
||||
<BetaBadge
|
||||
tooltip={betaBadgeTooltip}
|
||||
url="https://forms.gle/7M8821o5RDZrFKoF6"
|
||||
/>
|
||||
<StopOnFirstErrorBadge placement="bottom" />
|
||||
</p>
|
||||
<p>{t('log_entry_maximum_entries_see_full_logs')}</p>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user