mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-21 10:37:51 +02:00
Fix
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
4c17e4c8fd
commit
90196bbf47
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ const ThemedImage = (props: Props): JSX.Element => {
|
||||||
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
|
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
|
||||||
|
|
||||||
const renderedSourceNames: SourceName[] = isClient
|
const renderedSourceNames: SourceName[] = isClient
|
||||||
? clientTheme
|
? clientThemes
|
||||||
: // We need to render both images on the server to avoid flash
|
: // We need to render both images on the server to avoid flash
|
||||||
// See https://github.com/facebook/docusaurus/pull/3730
|
// See https://github.com/facebook/docusaurus/pull/3730
|
||||||
['light', 'dark'];
|
['light', 'dark'];
|
||||||
|
|
|
@ -24,7 +24,7 @@ const ThemedImage = (props: Props): JSX.Element => {
|
||||||
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
|
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
|
||||||
|
|
||||||
const renderedSourceNames: SourceName[] = isClient
|
const renderedSourceNames: SourceName[] = isClient
|
||||||
? clientTheme
|
? clientThemes
|
||||||
: // We need to render both images on the server to avoid flash
|
: // We need to render both images on the server to avoid flash
|
||||||
// See https://github.com/facebook/docusaurus/pull/3730
|
// See https://github.com/facebook/docusaurus/pull/3730
|
||||||
['light', 'dark'];
|
['light', 'dark'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue