Skip to content

Commit

Permalink
Merge pull request #956 from Keith-CY/hide-other-msg-on-displaying-ma…
Browse files Browse the repository at this point in the history
…innet-addresses

fix(neuron-ui): hide unrelated columns when the mainnet address is di…
  • Loading branch information
ashchan committed Sep 25, 2019
2 parents 257b02a + 700c059 commit 8113b3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/neuron-ui/src/components/Addresses/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ const Addresses = ({
<ShimmeredDetailsList
enableShimmer={isLoading}
checkboxVisibility={CheckboxVisibility.hidden}
columns={addressColumns.map(col => ({ ...col, name: t(col.name) }))}
columns={addressColumns
.filter(col => !showMainnetAddress || col.key === 'address')
.map(col => ({ ...col, name: t(col.name) }))}
items={addresses.map(addr => ({
...addr,
address: showMainnetAddress
Expand Down

0 comments on commit 8113b3f

Please sign in to comment.