Skip to content

Commit

Permalink
Calypso environment badge: remove color scheme from account settings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored Nov 14, 2024
1 parent 5d16724 commit 2884db4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/lib/account-settings-helper/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import languages from '@automattic/languages';
import ReactDom from 'react-dom';
import { useInView } from 'react-intersection-observer';
import { Provider, useDispatch, useSelector } from 'react-redux';
import ColorSchemePicker from 'calypso/blocks/color-scheme-picker';
import QueryUserSettings from 'calypso/components/data/query-user-settings';
import LanguagePicker from 'calypso/components/language-picker';
import twoStepAuthorization from 'calypso/lib/two-step-authorization';
import ReauthRequired from 'calypso/me/reauth-required';
import { getPreference } from 'calypso/state/preferences/selectors';
import getUserSettings from 'calypso/state/selectors/get-user-settings';
import { setUserSetting } from 'calypso/state/user-settings/actions';
import { isFetchingUserSettings } from 'calypso/state/user-settings/selectors';
Expand All @@ -19,7 +17,6 @@ export function AccountSettingsHelper() {
const dispatch = useDispatch();
const userSettings = useSelector( getUserSettings ) ?? {};
const isFetching = useSelector( isFetchingUserSettings );
const colorSchemePreference = useSelector( ( state ) => getPreference( state, 'colorScheme' ) );
const { ref, inView } = useInView( { triggerOnce: true } );

const updateLanguage = ( event ) => {
Expand Down Expand Up @@ -59,8 +56,6 @@ export function AccountSettingsHelper() {
useFallbackForIncompleteLanguages={ userSettings?.use_fallback_for_incomplete_languages }
onChange={ updateLanguage }
/>
<div>Dashboard color scheme</div>
<ColorSchemePicker defaultSelection={ colorSchemePreference } />
</div>
</>
);
Expand Down

0 comments on commit 2884db4

Please sign in to comment.