[enhancement]: support toggling feature carousel

This commit is contained in:
Kendall Garner 2024-05-15 21:48:20 -07:00
parent 168153b211
commit bb2f8461ed
No known key found for this signature in database
GPG key ID: 18D2767419676C87
4 changed files with 29 additions and 2 deletions

View file

@ -377,6 +377,28 @@ export const ControlSettings = () => {
isHidden: false,
title: t('setting.genreBehavior', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label={t('setting.homeFeature', { postProcess: 'sentenceCase' })}
defaultChecked={settings.homeFeature}
onChange={(e) =>
setSettings({
general: {
...settings,
homeFeature: e.currentTarget.checked,
},
})
}
/>
),
description: t('setting.homeFeature', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: false,
title: t('setting.homeFeature', { postProcess: 'sentenceCase' }),
},
];
return <SettingsSection options={controlOptions} />;