-
Notifications
You must be signed in to change notification settings - Fork 37
Added support for two-column and narrow-wide templates in Banner temp… #306
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
Conversation
| <div className='banner-layout' style={{gridTemplateColumns: b ? `${gridCols}` : '1fr'}}> | ||
| <div style={{ padding: '1em' }}> | ||
| {a} | ||
| </div> | ||
| <div style={{ padding: '1em' }}> | ||
| {b} | ||
| </div> |
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.
why are you not using React Material Grid?
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.
why are you not using React Material Grid?
As the div tag also worked in my case removed Material Grid, will update to Grid.
5b9c66b to
7463480
Compare
…react-sdk into mod/tor/US-536543-1
…mod/tor/US-536543-1
| const variantMap = { | ||
| 'two-column': [6, 6], | ||
| 'narrow-wide': [4, 8], | ||
| 'wide-narrow': [8,4] |
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.
lint: add space between ',' and 4
| <Box | ||
| sx={{ flexGrow: 1, display: { xs: 'none', md: 'flex' } }} | ||
| style={{ justifyContent: alignment }} | ||
| > | ||
| {navLinks.map(link => ( | ||
| <Button className='link-style' key={link.text} onClick={link.onClick}> | ||
| {link.text} | ||
| </Button> | ||
| ))} | ||
| </Box> | ||
| )} |
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.
If it is the same code getting duplicated below, can we create a separate individual component for it?
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.
removed duplicate code
…mod/tor/US-536543-1
* update react_pconnect to match dxcomponents (#303) * update react_pconnect to match dxcomponents * Added tests for TextInput, added a couple of tests in the unit test, and updated the structure of the tests folder (#307) * fix: view has no child text (#310) * fix: view has no child text * Added support for two-column and narrow-wide templates in Banner temp… (#306) * Added support for two-column and narrow-wide templates in Banner template Co-authored-by: manasa <manasa.mashetty@in.pega.com> --------- Co-authored-by: tumms2021389 <97188066+tumms2021389@users.noreply.github.com> Co-authored-by: Vishal Sharma <vishalshrm539@gmail.com> Co-authored-by: 4manasa <manasamashetty96@gmail.com> Co-authored-by: manasa <manasa.mashetty@in.pega.com>
…late