-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(components): add <PublicPageLayout> component #1974
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/o0zlmj67y |
🦋 Changeset detectedLatest commit: 1cdf6aa The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros | ||
import base64Background from /* preval */ './public-background'; |
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.
🔥
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.
Nice! Preval and macros!
it('should render welcome message and footer', async () => { | ||
renderComponent( | ||
<PublicPageLayout welcomeMessage="Welcome to the Merchant Center"> | ||
{'Test'} |
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.
Nit: should this work?
{'Test'} | |
Test |
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros | ||
import base64Background from /* preval */ './public-background'; |
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.
Nice! Preval and macros!
/** | ||
* The `normal` scale uses an horizontal contraint size of `8` (384px). | ||
* The `wide` scale uses an horizontal contraint size of `15` (742px). | ||
* The `wide` scale can be used for |
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... what?
This PR adds a new layout component (essentially our internal "public page container" component).
This is useful for login pages (or other pages such as auth callback error page #1934 ).