mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-31 07:28:45 +00:00
Update SkipSegmentsView.tsx
This commit is contained in:
parent
adbdd19e66
commit
96417a6fdf
1 changed files with 5 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
|||
display?.setTime(seconds);
|
||||
};
|
||||
|
||||
const getSegmentTypeLabel = (type: "intro" | "recap" | "credits") => {
|
||||
const getSegmentTypeLabel = (
|
||||
type: "intro" | "recap" | "credits" | "preview",
|
||||
) => {
|
||||
switch (type) {
|
||||
case "intro":
|
||||
return t("player.segment.intro");
|
||||
|
|
@ -44,6 +46,8 @@ export function SkipSegmentsView({ id }: { id: string }) {
|
|||
return t("player.segment.recap");
|
||||
case "credits":
|
||||
return t("player.segment.credits");
|
||||
case "preview":
|
||||
return t("player.segment.preview");
|
||||
default:
|
||||
return type;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue