Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Add generalClassNames to XY-Grid Cell (#51)
Browse files Browse the repository at this point in the history
I don't know if it this was left off intentionally, but it would be nice to be able to add props such as `isHidden` to `<Cell>` components.
  • Loading branch information
Brent Odell authored and crisu83 committed Sep 8, 2017
1 parent 94dac1f commit bd04998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/xy-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const Cell = (props) => {
isDefined(props.offsetOnSmall) ? `small-offset-${props.offsetOnSmall}` : null,
isDefined(props.offsetOnMedium) ? `medium-offset-${props.offsetOnMedium}` : null,
isDefined(props.offsetOnLarge) ? `large-offset-${props.offsetOnLarge}` : null,
generalClassNames(props)
);

const passProps = removeProps(props, objectKeys(Cell.propTypes));
Expand Down

0 comments on commit bd04998

Please sign in to comment.