Merge pull request #8246 from overleaf/tm-remove-logs-pane-info-notice

Remove PdfLogsPaneInfoNotice

GitOrigin-RevId: 0b4e611c081fe5fed8842c2967b47fc6f6556264
This commit is contained in:
Thomas 2022-06-01 15:18:30 +02:00 committed by Copybot
parent 5e2933e2fe
commit d9753dcb22
2 changed files with 0 additions and 52 deletions

View file

@ -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">&times;</span>
</button>
</div>
</div>
)
}
export default memo(PdfLogsPaneInfoNotice)

View file

@ -10,7 +10,6 @@ import PdfLogsEntries from './pdf-logs-entries'
import withErrorBoundary from '../../../infrastructure/error-boundary' import withErrorBoundary from '../../../infrastructure/error-boundary'
import ErrorBoundaryFallback from './error-boundary-fallback' import ErrorBoundaryFallback from './error-boundary-fallback'
import PdfCodeCheckFailedNotice from './pdf-code-check-failed-notice' 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 { useDetachCompileContext as useCompileContext } from '../../../shared/context/detach-compile-context'
import PdfLogEntry from './pdf-log-entry' import PdfLogEntry from './pdf-log-entry'
@ -29,8 +28,6 @@ function PdfLogsViewer() {
return ( return (
<div className={classnames('logs-pane', { hidden: !showLogs })}> <div className={classnames('logs-pane', { hidden: !showLogs })}>
<div className="logs-pane-content"> <div className="logs-pane-content">
<PdfLogsPaneInfoNotice />
{codeCheckFailed && <PdfCodeCheckFailedNotice />} {codeCheckFailed && <PdfCodeCheckFailedNotice />}
{error && <PdfPreviewError error={error} />} {error && <PdfPreviewError error={error} />}