uwindsorcss / wiki

A student-created wiki tailored for CS students
https://uwindsorcss.github.io/wiki/
6 stars 13 forks source link

Fix: feature icon not change with theme #60

Closed prairir closed 2 years ago

prairir commented 2 years ago

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