Merge branch 'site-preview-theme' into 'develop'
Fix site preview theme See merge request soapbox-pub/soapbox!1943
This commit is contained in:
commit
08c38ee6c1
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 { logo, logoDarkMode } = useSoapboxConfig();
|
||||
const settings = useSettings();
|
||||
const darkMode = useTheme() === 'dark';
|
||||
|
||||
let darkMode = useTheme() === 'dark';
|
||||
if (theme === 'dark') darkMode = true;
|
||||
|
||||
/** Soapbox logo. */
|
||||
const soapboxLogo = darkMode
|
||||
|
|
Loading…
Reference in a new issue