Skip to content
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(grid): add product grid to ray product #234

Merged
merged 4 commits into from
Oct 1, 2019
Merged

Conversation

Morgantheplant
Copy link
Contributor

https://jira.weworkers.io/browse/WEB-754

Moves the Container, Grid, and Cell over from core-components.

I also updated the jest config in ray product-react to also check .tsx, .ts, and .jsx extensions. It looks like the tests weren't running on the tsx files.

Packages added:
enzyme-to-json - for snapshots to run similar to core-components
identity-obj-proxy - for stubbing out css modules in tests

The code here was mostly untouched except for swapping out classnames package for clsx

@Morgantheplant Morgantheplant requested a review from a team as a code owner September 26, 2019 18:26
@Morgantheplant Morgantheplant added dependencies Pull requests that update a dependency file package: product-react labels Sep 26, 2019
@seimithwework seimithwework changed the title add product grid to ray product feat(grid): add product grid to ray product Sep 26, 2019
@Morgantheplant
Copy link
Contributor Author

opened in place of #233

}

.ray-grid__cell {
background: hotpink;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy

device?: CellDevice;
full?: boolean;
justify?: CellJustify;
pushColumn?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could assign this to a type and reuse

import { Grid } from '../src/components/Grid';
import '../src/components/Container/Container.scss';


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra new lines

<>
<Container debug={false}>
<Grid>
<Grid.Cell span={1}>Span 1</Grid.Cell>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could loop these

Copy link
Contributor

@jgbenito7 jgbenito7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nit comments but nothing major

@jamesdamild jamesdamild merged commit 7d8b4c9 into master Oct 1, 2019
@delete-merged-branch delete-merged-branch bot deleted the mcp/WEB-754 branch October 1, 2019 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file package: product-react
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants