Skip to content

Commit cf1cc8c

Browse files
committed
refactor(studio): name the non-keyframe header for what it is
LegacyTrackHeader reads as deprecated code. It is the live path for every track that has no keyframe clip to disclose, so call it PlainTrackHeader and say so in a comment.
1 parent ca933b4 commit cf1cc8c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/studio/src/player/components/TimelineTrackHeader.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ function VisibilityButton({
7575
);
7676
}
7777

78-
function LegacyTrackHeader({
78+
// The header a track gets when it has no keyframe clip to disclose: label, clip
79+
// count, eye. Not deprecated — it is the live path for every track without lanes.
80+
function PlainTrackHeader({
7981
trackNumber,
8082
trackLabel,
8183
clipCount,
@@ -318,7 +320,7 @@ export function TimelineTrackHeader({
318320
}}
319321
>
320322
{!keyframeClip || lanes.length === 0 ? (
321-
<LegacyTrackHeader
323+
<PlainTrackHeader
322324
trackNumber={trackNumber}
323325
trackLabel={trackLabel}
324326
clipCount={clipCount}

0 commit comments

Comments
 (0)