Skip to content

Commit

Permalink
feat(CompositeRow): Spread props (#1230)
Browse files Browse the repository at this point in the history
Sometimes we need to pass basic props to CompositeRow. For example
onClick. It was not possible.
drazik authored Nov 5, 2019

Verified

This commit was signed with the committer’s verified signature.
Heptazhou Heptazhou
1 parent f0ff25b commit a08e973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react/CompositeRow/index.jsx
Original file line number Diff line number Diff line change
@@ -17,12 +17,14 @@ const CompositeRow = ({
image,
right,
actions,
dense
dense,
...rest
}) => {
return (
<Media
className={cx(className, dense ? 'u-ph-1' : 'u-p-1')}
style={dense ? Object.assign({}, denseStyle, style) : style}
{...rest}
>
<div className="u-media u-media-grow u-row-m">
{image ? <Img className="u-flex-self-start">{image}</Img> : null}

0 comments on commit a08e973

Please sign in to comment.