Skip to content

Commit

Permalink
style(explorer): improve individual extra props rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 26, 2023
1 parent 34d28bf commit 9ad4cc9
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/components/explorer/IndividualOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@ const IndividualOverview = ({individual}) => {
</Descriptions.Item>
<Descriptions.Item label="Extra Properties">{
(individual.hasOwnProperty("extra_properties") && Object.keys(individual.extra_properties).length)
? <div>
<pre>
<ReactJson src={individual.extra_properties}
displayDataTypes={false}
name="Properties"
collapsed={1}
enableClipboard={false}
/>
</pre>
</div>
: EM_DASH
? (
<ReactJson
src={individual.extra_properties}
displayDataTypes={false}
name={null}
collapsed={1}
enableClipboard={false}
/>
) : EM_DASH
}</Descriptions.Item>
</Descriptions>
);
Expand Down

0 comments on commit 9ad4cc9

Please sign in to comment.