diff --git a/app/soapbox/features/ui/components/navbar.tsx b/app/soapbox/features/ui/components/navbar.tsx index 75b76a12c..d01b2fd27 100644 --- a/app/soapbox/features/ui/components/navbar.tsx +++ b/app/soapbox/features/ui/components/navbar.tsx @@ -6,6 +6,7 @@ import { Link } from 'react-router-dom'; import { Avatar, Button, Icon } from 'soapbox/components/ui'; import Search from 'soapbox/features/compose/components/search'; +import ThemeToggle from 'soapbox/features/ui/components/theme_toggle'; import { useOwnAccount, useSoapboxConfig, useSettings } from 'soapbox/hooks'; import { openSidebar } from '../../../actions/sidebar'; @@ -67,6 +68,10 @@ const Navbar = () => {
+ {settings.get('isDeveloper') && ( + + )} + {account ? (
diff --git a/app/soapbox/features/ui/components/theme_toggle.tsx b/app/soapbox/features/ui/components/theme_toggle.tsx index 34d5d3b0e..5f04be848 100644 --- a/app/soapbox/features/ui/components/theme_toggle.tsx +++ b/app/soapbox/features/ui/components/theme_toggle.tsx @@ -5,6 +5,7 @@ import Toggle from 'react-toggle'; import { v4 as uuidv4 } from 'uuid'; import { changeSetting } from 'soapbox/actions/settings'; +import { Icon } from 'soapbox/components/ui'; import { useSettings } from 'soapbox/hooks'; const messages = defineMessages({ @@ -13,7 +14,7 @@ const messages = defineMessages({ }); interface IThemeToggle { - showLabel: boolean, + showLabel?: boolean, } function ThemeToggle({ showLabel }: IThemeToggle) { @@ -35,6 +36,10 @@ function ThemeToggle({ showLabel }: IThemeToggle) { , + unchecked: , + }} onChange={onToggle} /> {showLabel && ()}