From 306b78478a84012fcc9ef444b9f8225f381f90b7 Mon Sep 17 00:00:00 2001 From: devjiwonchoi Date: Tue, 17 Dec 2024 23:57:51 +0900 Subject: [PATCH] Delete unused `GroupedStackFrames.tsx` --- .../RuntimeError/GroupedStackFrames.tsx | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx diff --git a/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx b/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx deleted file mode 100644 index 1a6ea345b6188..0000000000000 --- a/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import type { StackFramesGroup } from '../../helpers/group-stack-frames-by-framework' -import { CallStackFrame } from './CallStackFrame' -import { CollapseIcon } from '../../icons/CollapseIcon' -import { FrameworkIcon } from '../../icons/FrameworkIcon' - -function FrameworkGroup({ - framework, - stackFrames, -}: { - framework: NonNullable - stackFrames: StackFramesGroup['stackFrames'] -}) { - return ( -
- {/* Match CallStackFrame tabIndex */} - - - - {framework === 'react' ? 'React' : 'Next.js'} - - {stackFrames.map((frame, index) => ( - - ))} -
- ) -} - -export function GroupedStackFrames({ - groupedStackFrames, -}: { - groupedStackFrames: StackFramesGroup[] -}) { - return ( - <> - {groupedStackFrames.map((stackFramesGroup, groupIndex) => { - // Collapse React and Next.js frames - if (stackFramesGroup.framework) { - return ( - - ) - } - - return ( - // Don't group non React and Next.js frames - stackFramesGroup.stackFrames.map((frame, frameIndex) => ( - - )) - ) - })} - - ) -}