Skip to content

Commit

Permalink
Remove unused CSS vars
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 6, 2025
1 parent 601ddc9 commit ace7413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { useOpenInEditor } from '../../utils/use-open-in-editor'

export const CallStackFrame: React.FC<{
frame: OriginalStackFrame
index: number
}> = function CallStackFrame({ frame, index }) {
}> = function CallStackFrame({ frame }) {
// TODO: ability to expand resolved frames

const f: StackFrame = frame.originalStackFrame ?? frame.sourceStackFrame
Expand Down Expand Up @@ -41,11 +40,6 @@ export const CallStackFrame: React.FC<{
data-nextjs-call-stack-frame
data-nextjs-call-stack-frame-no-source={!hasSource}
data-nextjs-call-stack-frame-ignored={frame.ignored}
style={
{
'--index': index,
} as React.CSSProperties
}
>
<div className="call-stack-frame-method-name">
<HotlinkedText text={formattedMethod} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function CallStack({ frames, dialogResizerRef }: CallStackProps) {
</div>
{frames.map((frame, frameIndex) => {
return !frame.ignored || isIgnoreListOpen ? (
<CallStackFrame key={frameIndex} frame={frame} index={frameIndex} />
<CallStackFrame key={frameIndex} frame={frame} />
) : null
})}
</div>
Expand Down

0 comments on commit ace7413

Please sign in to comment.