// @flow import { SETTINGS_GRP } from 'constants/settings'; import React from 'react'; import * as SETTINGS from 'constants/settings'; import Card from 'component/common/card'; import { FormField } from 'component/common/form'; import HomepageSelector from 'component/homepageSelector'; import SettingLanguage from 'component/settingLanguage'; import SettingsRow from 'component/settingsRow'; import ThemeSelector from 'component/themeSelector'; // $FlowFixMe import homepages from 'homepages'; type Props = { disableBackground: boolean, clock24h: boolean, searchInLanguage: boolean, hideBalance: boolean, setClientSetting: (string, boolean | string | number) => void, setSearchInLanguage: (boolean) => void, }; export default function SettingAppearance(props: Props) { const { clock24h, disableBackground, searchInLanguage, hideBalance, setClientSetting, setSearchInLanguage } = props; return ( <>

{__('Appearance')}

{homepages && Object.keys(homepages).length > 1 && ( )} setSearchInLanguage(!searchInLanguage)} /> setClientSetting(SETTINGS.CLOCK_24H, !clock24h)} checked={clock24h} /> setClientSetting(SETTINGS.DISABLE_BACKGROUND, !disableBackground)} checked={disableBackground} /> setClientSetting(SETTINGS.HIDE_BALANCE, !hideBalance)} checked={hideBalance} /> } /> ); } // prettier-ignore const HELP = { LANGUAGE: 'Multi-language support is brand new and incomplete. Switching your language may have unintended consequences, like glossolalia.', };