diff --git a/src/components/Timeline/Grid/index.jsx b/src/components/Timeline/Grid/index.jsx index 5d8772c2..30c9499c 100644 --- a/src/components/Timeline/Grid/index.jsx +++ b/src/components/Timeline/Grid/index.jsx @@ -1,10 +1,12 @@ import React from 'react' import PropTypes from 'prop-types' +import createClasses from '../../../utils/classes' + const Grid = ({ time, grid }) => (
- {grid.map(({ id, start, end }) => ( -
+ {grid.map(({ id, start, end, classes }) => ( +
))}
) diff --git a/src/components/Timeline/Timebar/Cell.jsx b/src/components/Timeline/Timebar/Cell.jsx index 7c38457c..11747cce 100644 --- a/src/components/Timeline/Timebar/Cell.jsx +++ b/src/components/Timeline/Timebar/Cell.jsx @@ -1,8 +1,10 @@ import React from 'react' import PropTypes from 'prop-types' -const Cell = ({ time, title, start, end }) => ( -
+import createClasses from "../../../utils/classes" + +const Cell = ({ time, title, start, end, classes }) => ( +
{title}
) @@ -14,6 +16,7 @@ Cell.propTypes = { title: PropTypes.string.isRequired, start: PropTypes.instanceOf(Date).isRequired, end: PropTypes.instanceOf(Date).isRequired, + classes: PropTypes.arrayOf(PropTypes.string.isRequired), } export default Cell