Closed prairir closed 2 years ago
On init of the wiki, sometimes the useThemeContext hook returns the wrong thing. This is mega super duper poopy and makes it look weird.
useThemeContext
To fix this, I used the ThemedImage component. This component correctly renders the image according to the theme. It also simplifies our code.
ThemedImage
Read above
This component is under documented. Its only documentation is at https://docusaurus.io/docs/next/markdown-features/assets#themed-images
What are you trying to accomplish?
On init of the wiki, sometimes the
useThemeContext
hook returns the wrong thing. This is mega super duper poopy and makes it look weird.To fix this, I used the
ThemedImage
component. This component correctly renders the image according to the theme. It also simplifies our code.How are you accomplishing it?
Read above
Is there anything reviewers should know?
This component is under documented. Its only documentation is at https://docusaurus.io/docs/next/markdown-features/assets#themed-images
Checks before you create your pull request