mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-25 23:30:33 +01:00
- spacing: top padding + inter-group gaps so section titles, descriptions and buttons no longer touch (playback buffer, audio/subtitles, music, marlin, kefin, streamystats, storage, hide-libraries) - ListGroup: skip empty section titles - SettingSwitch: cap the native Android switch in a fixed centered box so toggle rows match the other rows and stay put when toggled; iOS unchanged - Appearance: move "Hide libraries" to the end of the list
29 lines
901 B
TypeScript
29 lines
901 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { SettingSwitch } from "@/components/common/SettingSwitch";
|
|
import { useSettings } from "@/utils/atoms/settings";
|
|
import { ListGroup } from "../list/ListGroup";
|
|
import { ListItem } from "../list/ListItem";
|
|
|
|
export const KefinTweaksSettings = () => {
|
|
const { settings, updateSettings, pluginSettings } = useSettings();
|
|
const { t } = useTranslation();
|
|
|
|
const isEnabled = settings?.useKefinTweaks ?? false;
|
|
const locked = pluginSettings?.useKefinTweaks?.locked === true;
|
|
|
|
return (
|
|
<ListGroup>
|
|
<ListItem
|
|
title={t("home.settings.plugins.kefinTweaks.watchlist_enabler")}
|
|
disabledByAdmin={locked}
|
|
>
|
|
<SettingSwitch
|
|
value={isEnabled}
|
|
disabled={locked}
|
|
onValueChange={(value) => updateSettings({ useKefinTweaks: value })}
|
|
/>
|
|
</ListItem>
|
|
</ListGroup>
|
|
);
|
|
};
|