Update packages/docusaurus-theme-classic/src/theme/ThemedImage/index.tsx

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
Joshua Chen 2021-06-18 18:41:56 +08:00 committed by GitHub
parent c7c833fe77
commit 9ff6f9259d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ const ThemedImage = (props: Props): JSX.Element => {
type SourceName = keyof Props['sources'];
const clientTheme: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
const clientThemes: SourceName[] = isDarkTheme ? ['dark'] : ['light'];
const renderedSourceNames: SourceName[] = isClient
? clientTheme