Skip to content

Commit

Permalink
replace pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Dec 19, 2024
1 parent 0f15e94 commit 7b685a6
Showing 1 changed file with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
DialogContent,
DialogHeader,
} from '../components/Dialog'
import { LeftRightDialogHeader } from '../components/LeftRightDialogHeader'
import { Overlay } from '../components/Overlay'
import { getErrorByType } from '../helpers/get-error-by-type'
import type { ReadyRuntimeError } from '../helpers/get-error-by-type'
Expand All @@ -35,6 +34,7 @@ import {
} from '../helpers/console-error'
import { extractNextErrorCode } from '../../../../../../lib/error-telemetry-utils'
import { ErrorIndicator } from '../components/Errors/ErrorIndicator/ErrorIndicator'
import { ErrorPagination } from '../components/Errors/ErrorPagination/ErrorPagination'

export type SupportedErrorEvent = {
id: number
Expand Down Expand Up @@ -273,21 +273,15 @@ export function Errors({
>
<DialogContent>
<DialogHeader className="nextjs-container-errors-header">
<LeftRightDialogHeader
previous={activeIdx > 0 ? previous : null}
next={activeIdx < readyErrors.length - 1 ? next : null}
close={isServerError ? undefined : minimize}
>
<small>
<span>{activeIdx + 1}</span> of{' '}
<span data-nextjs-dialog-header-total-count>
{readyErrors.length}
</span>
{' issue'}
{readyErrors.length < 2 ? '' : 's'}
</small>
<VersionStalenessInfo versionInfo={versionInfo} />
</LeftRightDialogHeader>
<ErrorPagination
activeIdx={activeIdx}
readyErrors={readyErrors}
previous={previous}
next={next}
minimize={minimize}
isServerError={isServerError}
/>
<VersionStalenessInfo versionInfo={versionInfo} />

<div
className="nextjs__container_errors__error_title"
Expand Down

0 comments on commit 7b685a6

Please sign in to comment.