Skip to content

Commit

Permalink
fix(neuron-ui): hide unrelated columns when the mainnet address is di…
Browse files Browse the repository at this point in the history
…splayed
  • Loading branch information
Keith-CY committed Sep 25, 2019
1 parent 257b02a commit 700c059
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 700c059

Please sign in to comment.