-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
[docs] Add signed in state as default on <Account />
docs
#3970
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason in https://deploy-preview-3970--mui-toolpad-docs.netlify.app/toolpad/core/react-account/ the demo appears logged out to me at the start. If I click the code editor for example, it changes to a logged-in state.
Also I'm not sure if the preview code shown for the first demo is explanatory enough without being expanded, but not sure about this... I guess it's useful for people to know the format of the session
object from there, but as for the signIn
function I guess that's covered in another component so it's fine?
I've added a proposal to detect changes to |
…ad into enh/account-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Does the script check for unstaged files only? Maybe that would be better if not but not even sure, anyway I think this is a helpful change, helps not always having to run the docs scripts when working on the docs!
As an alternative, docs:dev
could maybe also just watch for live changes in those files and run the script every time they change, but that might be too heavy so then in that case it should probably just generate files for the documentation that changed. But that's just a possible idea for a future improvement!
Removed the script proposal in favour of using the |
Few questions
|
I'll update the "States" sub section to have two demos, one titled "Signed In" and one titled "Signed out"
I'm using the
Do you mean showing the avatar next to the Login button, something like this? |
yes, it underneath each other. or with a label even |
preview