Skip to content

Commit f4d88e4

Browse files
committed
fix: remove duplicate watch settings context
1 parent 3a4e899 commit f4d88e4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/web/src/settings/settings-content-toggles.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type ToggleOption = {
4949
key: ToggleKey;
5050
label: string;
5151
description: string;
52-
area: string;
52+
area?: string;
5353
};
5454

5555
function watchOptions(): ToggleOption[] {
@@ -58,7 +58,6 @@ function watchOptions(): ToggleOption[] {
5858
key: "autoplay",
5959
label: m.ui_autoplay_next_video(),
6060
description: m.ui_automatically_continue_with_the_first_item_in_the_suggestions_column(),
61-
area: m.ui_watch_page(),
6261
},
6362
];
6463
}
@@ -123,7 +122,7 @@ function ToggleRows({ options }: { options: ToggleOption[] }) {
123122
<div className="typetype-adaptive-label flex min-w-0 flex-1 flex-col gap-1">
124123
<div className="flex flex-wrap items-center gap-2">
125124
<span className="text-fg text-sm">{option.label}</span>
126-
<span className="text-[10px] uppercase text-fg-soft">{option.area}</span>
125+
{option.area && <span className="text-[10px] uppercase text-fg-soft">{option.area}</span>}
127126
</div>
128127
<span className="text-fg-soft text-xs">{option.description}</span>
129128
</div>

0 commit comments

Comments
 (0)