Add ThemeToggle to Preferences

api-accept
Alex Gleason 2022-05-04 11:11:47 -05:00
rodzic d7e2b843cf
commit 1375c62fc1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -9,6 +9,8 @@ import { SelectDropdown } from 'soapbox/features/forms';
import SettingToggle from 'soapbox/features/notifications/components/setting_toggle';
import { useAppSelector } from 'soapbox/hooks';
import ThemeToggle from '../ui/components/theme-toggle';
const languages = {
en: 'English',
ar: 'العربية',
@ -125,13 +127,13 @@ const Preferences = () => {
>
<SettingToggle settings={settings} settingPath={['home', 'shows', 'reply']} onChange={onToggleChange} />
</ListItem>
{/* <ListItem label={<FormattedMessage id='home.column_settings.show_direct' defaultMessage='Show direct messages' />}>
<SettingToggle settings={settings} settingPath={['home', 'shows', 'direct']} onChange={onToggleChange} />
</ListItem> */}
</List>
<List>
<ListItem label={<FormattedMessage id='preferences.fields.theme' defaultMessage='Theme' />}>
<ThemeToggle />
</ListItem>
<ListItem label={<FormattedMessage id='preferences.fields.language_label' defaultMessage='Language' />}>
<SelectDropdown
items={languages}