Skip to content

Commit

Permalink
Highlight attributes with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Aug 28, 2017
1 parent a494db6 commit 798ae0b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fixtures/attribute-behavior/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,14 @@ function CellContent(props) {
if (rowIndex === 0) {
return null;
}
return <RowHeader>{attribute.name}</RowHeader>;
const hasSameBehaviorForAll = types.every(
type => table.get(attribute).get(type.name).hasSameBehavior
);
return (
<RowHeader>
{hasSameBehaviorForAll ? attribute.name : <b>{attribute.name}</b>}
</RowHeader>
);
}

if (rowIndex === 0) {
Expand Down

0 comments on commit 798ae0b

Please sign in to comment.