diff --git a/app/soapbox/features/preferences/index.tsx b/app/soapbox/features/preferences/index.tsx index 1fab5ca74..9f02734f7 100644 --- a/app/soapbox/features/preferences/index.tsx +++ b/app/soapbox/features/preferences/index.tsx @@ -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 = () => { > - - {/* }> - - */} + }> + + + }> = ({ account, children }) => { const dispatch = useDispatch(); const features = useFeatures(); - const settings = useSettings(); const intl = useIntl(); const authUsers = useAppSelector((state) => state.auth.get('users')); @@ -79,12 +78,8 @@ const ProfileDropdown: React.FC = ({ account, children }) => { } }); - if (features.darkMode || settings.get('isDeveloper')) { - menu.push({ text: null }); - - menu.push({ text: intl.formatMessage(messages.theme), toggle: }); - } - + menu.push({ text: null }); + menu.push({ text: intl.formatMessage(messages.theme), toggle: }); menu.push({ text: null }); menu.push({ diff --git a/app/soapbox/pages/home_page.tsx b/app/soapbox/pages/home_page.tsx index baffc34da..9e81f88bf 100644 --- a/app/soapbox/pages/home_page.tsx +++ b/app/soapbox/pages/home_page.tsx @@ -35,7 +35,7 @@ const HomePage: React.FC = ({ children }) => { return ( <> - + {me && ( diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 7de80ac9c..34691da4c 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -188,10 +188,6 @@ const getInstanceFeatures = (instance: Instance) => { v.software === PIXELFED, ]), - // FIXME: long-term this shouldn't be a feature, - // but for now we want it to be overrideable in the build - darkMode: true, - /** * Legacy DMs timeline where messages are displayed chronologically without groupings. * @see GET /api/v1/timelines/direct