-
Notifications
You must be signed in to change notification settings - Fork 687
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
Refactor the Page component and its children #39
Conversation
Nice! |
c6ca108
to
760ee3e
Compare
classes: PropTypes.shape({ | ||
root: PropTypes.string | ||
}), | ||
openCart: PropTypes.func |
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.
This should be marked as isRequired
since there aren't any safeguards in place. Prevents a refactoring hazard later on
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.
Cool. Updated that on all the triggers.
To accommodate drawers and other top-level elements, the page components needs to be refactored. Also, the introduction of the router broke the navigation, since it was being wired by the App component, which is now defunct. This commit uses a new global reducer, `app`, replacing the old `navigation` one. It will manage drawer and overlay state. The header and footer have been moved into the Main component. This will preempt some stacking context issues. A mask has been added to the app when a drawer is open. Further masking may be added in the future for a modal dialog component.
760ee3e
to
f04cad1
Compare
Wooohooooooooo |
* fix: remove buggy sudo-prompt until fallback works. Fixes magento#35. - Added custom prompt for command-line sudo. * fix: make runAsRoot simpler, prompt mandatory
This PR is a:
[x] New feature
[x] Enhancement/Optimization
[x] Refactor
[x] Bugfix
[ ] Test for existing code
[ ] Documentation
Summary
To accommodate drawers and other top-level elements, the page components needs to be refactored. Also, the introduction of the router broke the navigation, since it was being wired by the App component, which is now defunct.
Additional information
This commit uses a new global reducer,
app
, replacing the oldnavigation
one. It will manage drawer and overlay state.The Header and Footer components have been moved into the Main component. This will preempt some stacking context issues.
A mask has been added to the app when a drawer is open. Further masking may be added in the future for a modal dialog component.