forked from storefront-foundation/react-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRow.js
33 lines (29 loc) · 754 Bytes
/
Row.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import PropTypes from 'prop-types'
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
const useStyles = makeStyles(theme => ({
/**
* Styles applied to the root element.
*/
root: {
margin: `0 0 ${theme.spacing(2)}px 0`,
},
}))
/**
* A grid item that takes up the full viewport. Provided for backwards compatibility with
* React Storefront 6.
*/
export default function Row({ children, classes, ...others }) {
classes = useStyles({ classes })
return (
<div className={classes.root} {...others}>
{children}
</div>
)
}
Row.propTypes = {
/**
* Override or extend the styles applied to the component. See [CSS API](#css) below for more details.
*/
classes: PropTypes.object,
}