Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
Josh-Cena 2021-06-18 18:53:28 +08:00
parent 4c17e4c8fd
commit 90196bbf47
No known key found for this signature in database
GPG key ID: C37145B818BDB68F
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ const ThemedImage = (props: Props): JSX.Element => {
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
const renderedSourceNames: SourceName[] = isClient
? clientTheme
? clientThemes
: // We need to render both images on the server to avoid flash
// See https://github.com/facebook/docusaurus/pull/3730
['light', 'dark'];

View file

@ -24,7 +24,7 @@ const ThemedImage = (props: Props): JSX.Element => {
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
const renderedSourceNames: SourceName[] = isClient
? clientTheme
? clientThemes
: // We need to render both images on the server to avoid flash
// See https://github.com/facebook/docusaurus/pull/3730
['light', 'dark'];