operational-ui
operational-ui copied to clipboard
Fix code examples
So now that we moved to the Monaco Editor (#1036), some examples are invalid. You can see this by navigating through the components and clicking View Code here: https://operational-ui.netlify.com/#/Hooks/useInterval and on other components.

When you click View Code, you might see some errors:

Let's fix all these errors by editing the README.md files of each component that has them.
Hey @TejasQ interested in this issue! However is their a simple way to exhaustively find these issues?
You could create a checker 😛
My original plan was to go through each page.
One idea is the way the “View Code” Button works — the default state is that the playgrounds are closed. You could change this (just for your checking process) to have the playgrounds open by default and then just scan each page. I think that could be a small step in the right direction.
Let me know if you want to take it so I can mark it as taken.
Let's not mark it yet! If this is not taken by next Friday I will pick it up :)
@TejasQ I'd like to take this issue.
You got it, @bradd123!
@TejasQ I made an initial commit fixing hooks examples. Please take a look. I will fix others tomorrow.
Pushed some more changes. Currently, there are 9 pending components. I will fix them ASAP.
I've been sick for the last week, will resume working on it.
Nice!