Fix site preview theme
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
275a4c581b
commit
f6258357f7
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ interface ISiteLogo extends React.ComponentProps<'img'> {
|
||||||
const SiteLogo: React.FC<ISiteLogo> = ({ className, theme, ...rest }) => {
|
const SiteLogo: React.FC<ISiteLogo> = ({ className, theme, ...rest }) => {
|
||||||
const { logo, logoDarkMode } = useSoapboxConfig();
|
const { logo, logoDarkMode } = useSoapboxConfig();
|
||||||
const settings = useSettings();
|
const settings = useSettings();
|
||||||
const darkMode = useTheme() === 'dark';
|
|
||||||
|
let darkMode = useTheme() === 'dark';
|
||||||
|
if (theme === 'dark') darkMode = true;
|
||||||
|
|
||||||
/** Soapbox logo. */
|
/** Soapbox logo. */
|
||||||
const soapboxLogo = darkMode
|
const soapboxLogo = darkMode
|
||||||
|
|
Loading…
Reference in a new issue