Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a React hook for getting dark-mode state #89

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

adierkens
Copy link
Contributor

Allows any component to use the hook in their Component to fetch the current state of dark-mode.

Here I'm using the hook to set the theme on a monoco editor in the addons panel

Screen Recording 2020-02-03 at 4 59 21 PM

@hipstersmoothie hipstersmoothie added the minor Increment the minor version when merged label Feb 4, 2020
@hipstersmoothie hipstersmoothie merged commit 2513527 into hipstersmoothie:master Feb 4, 2020
@hipstersmoothie
Copy link
Owner

🚀 PR was released in v0.3.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants