Skip to content

Commit fc86c72

Browse files
fix(player): add timeDivider slot to default layout (#1581)
1 parent 3391749 commit fc86c72

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/react/src/components/layouts/default/slots.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type DefaultLayoutSlotName =
2020
| 'title'
2121
| 'chapterTitle'
2222
| 'currentTime'
23+
| 'timeDivider'
2324
| 'endTime'
2425
| 'fullscreenButton'
2526
| 'liveButton'

packages/react/src/components/layouts/default/ui/time.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function DefaultTimeGroup({ slots }: { slots?: DefaultTimeGroupSlots }) {
2323
return (
2424
<div className="vds-time-group">
2525
{slot(slots, 'currentTime', <Time className="vds-time" type="current" />)}
26-
{slot(slots, 'timeSeparator', <div className="vds-time-divider">/</div>)}
26+
{slot(slots, 'timeDivider', <div className="vds-time-divider">/</div>)}
2727
{slot(slots, 'endTime', <Time className="vds-time" type="duration" />)}
2828
</div>
2929
);

0 commit comments

Comments
 (0)