/** * @file ChangesPanelSettings — Settings → Git → Changes panel: whether a * workspace folder that holds several git repositories shows each of them as * its own section in the Changes panel (off by default: only the folder's own * git). Writes the account preference in `lib/innerReposPref.ts`. * @author Nguyễn Ngọc Trí Vĩ */ import { useTranslation } from "react-i18next"; import { useInnerReposMode, writeInnerReposMode } from "../../lib/innerReposPref"; import { SettingsSection, SettingsSwitchRow } from "./SettingsRow"; export function ChangesPanelSettings() { const { t } = useTranslation("settings"); const mode = useInnerReposMode(); return ( writeInnerReposMode(on ? "all" : "own")} /> ); }