From 798ae0ba5cec2e1ee500c9d6718046092a4373de Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 28 Aug 2017 14:07:41 -0700 Subject: [PATCH] Highlight attributes with changes --- fixtures/attribute-behavior/src/App.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fixtures/attribute-behavior/src/App.js b/fixtures/attribute-behavior/src/App.js index f8c7b457fdef6..e004a34c5807e 100644 --- a/fixtures/attribute-behavior/src/App.js +++ b/fixtures/attribute-behavior/src/App.js @@ -2732,7 +2732,14 @@ function CellContent(props) { if (rowIndex === 0) { return null; } - return {attribute.name}; + const hasSameBehaviorForAll = types.every( + type => table.get(attribute).get(type.name).hasSameBehavior + ); + return ( + + {hasSameBehaviorForAll ? attribute.name : {attribute.name}} + + ); } if (rowIndex === 0) {