Merge branch 'site-preview-theme' into 'develop'

Fix site preview theme

See merge request soapbox-pub/soapbox!1943
This commit is contained in:
marcin mikołajczak 2022-11-26 13:11:08 +00:00
commit 08c38ee6c1

View file

@ -14,7 +14,9 @@ interface ISiteLogo extends React.ComponentProps<'img'> {
const SiteLogo: React.FC<ISiteLogo> = ({ className, theme, ...rest }) => {
const { logo, logoDarkMode } = useSoapboxConfig();
const settings = useSettings();
const darkMode = useTheme() === 'dark';
let darkMode = useTheme() === 'dark';
if (theme === 'dark') darkMode = true;
/** Soapbox logo. */
const soapboxLogo = darkMode