mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #8246 from overleaf/tm-remove-logs-pane-info-notice
Remove PdfLogsPaneInfoNotice GitOrigin-RevId: 0b4e611c081fe5fed8842c2967b47fc6f6556264
This commit is contained in:
parent
5e2933e2fe
commit
d9753dcb22
2 changed files with 0 additions and 52 deletions
|
@ -1,49 +0,0 @@
|
|||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import usePersistedState from '../../../shared/hooks/use-persisted-state'
|
||||
|
||||
function PdfLogsPaneInfoNotice() {
|
||||
const { t } = useTranslation()
|
||||
|
||||
const [dismissed, setDismissed] = usePersistedState(
|
||||
'logs_pane.dismissed_info_notice',
|
||||
false
|
||||
)
|
||||
|
||||
if (dismissed) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="log-entry">
|
||||
<div className="log-entry-header log-entry-header-raw">
|
||||
<div className="log-entry-header-icon-container">
|
||||
<span className="info-badge" />
|
||||
</div>
|
||||
<h3 className="log-entry-header-title">
|
||||
{t('logs_pane_info_message')}
|
||||
</h3>
|
||||
<a
|
||||
href="https://forms.gle/zYByeRPcDtA6nDS19"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="log-entry-header-link log-entry-header-link-raw"
|
||||
>
|
||||
<span className="log-entry-header-link-location">
|
||||
{t('give_feedback')}
|
||||
</span>
|
||||
</a>
|
||||
<button
|
||||
className="btn-inline-link log-entry-header-link"
|
||||
type="button"
|
||||
aria-label={t('dismiss')}
|
||||
onClick={() => setDismissed(true)}
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default memo(PdfLogsPaneInfoNotice)
|
|
@ -10,7 +10,6 @@ import PdfLogsEntries from './pdf-logs-entries'
|
|||
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
||||
import ErrorBoundaryFallback from './error-boundary-fallback'
|
||||
import PdfCodeCheckFailedNotice from './pdf-code-check-failed-notice'
|
||||
import PdfLogsPaneInfoNotice from './pdf-logs-pane-info-notice'
|
||||
import { useDetachCompileContext as useCompileContext } from '../../../shared/context/detach-compile-context'
|
||||
import PdfLogEntry from './pdf-log-entry'
|
||||
|
||||
|
@ -29,8 +28,6 @@ function PdfLogsViewer() {
|
|||
return (
|
||||
<div className={classnames('logs-pane', { hidden: !showLogs })}>
|
||||
<div className="logs-pane-content">
|
||||
<PdfLogsPaneInfoNotice />
|
||||
|
||||
{codeCheckFailed && <PdfCodeCheckFailedNotice />}
|
||||
|
||||
{error && <PdfPreviewError error={error} />}
|
||||
|
|
Loading…
Reference in a new issue