cozy-ui 62.0.2 → 62.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [62.0.3](https://github.com/cozy/cozy-ui/compare/v62.0.2...v62.0.3) (2022-02-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Grid:** Use justifyContent props inside Grid component ([d5eb807](https://github.com/cozy/cozy-ui/commit/d5eb807))
7
+
1
8
  ## [62.0.2](https://github.com/cozy/cozy-ui/compare/v62.0.1...v62.0.2) (2022-02-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "62.0.2",
3
+ "version": "62.0.3",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -34,7 +34,7 @@ const Banner = ({
34
34
  className={cx(styles['c-banner-wrapper'], className)}
35
35
  style={bgcolor && { backgroundColor: bgcolor }}
36
36
  >
37
- <Grid container justify="space-between">
37
+ <Grid container justifyContent="space-between">
38
38
  <Grid
39
39
  container
40
40
  item
@@ -0,0 +1,19 @@
1
+ import React from 'react'
2
+ import { render } from '@testing-library/react'
3
+ import Banner from './index'
4
+
5
+ describe('Grid', () => {
6
+ it('should render correctly justify content', () => {
7
+ // Given
8
+ console.error = jest.fn()
9
+
10
+ // When
11
+ const { container } = render(<Banner />)
12
+
13
+ // Then
14
+ expect(console.error).not.toHaveBeenCalled()
15
+ expect(
16
+ container.querySelector('.MuiGrid-justify-content-xs-space-between')
17
+ ).toBeInTheDocument()
18
+ })
19
+ })
@@ -38,7 +38,7 @@ var Banner = function Banner(_ref) {
38
38
  }
39
39
  }, React.createElement(Grid, {
40
40
  container: true,
41
- justify: "space-between"
41
+ justifyContent: "space-between"
42
42
  }, React.createElement(Grid, {
43
43
  container: true,
44
44
  item: true,