Browse Source

Shuffle the Buy/Trade list

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
f79daffa6a
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 5
      src/components/ExchangePage/index.js

5
src/components/ExchangePage/index.js

@ -2,6 +2,7 @@
import React, { PureComponent } from 'react'
import { translate } from 'react-i18next'
import shuffle from 'lodash/shuffle'
import type { T } from 'types/common'
import { urls } from 'config/urls'
@ -21,7 +22,7 @@ type Props = {
t: T,
}
const cards = [
const cards = shuffle([
{
key: 'coinhouse',
id: 'coinhouse',
@ -70,7 +71,7 @@ const cards = [
url: urls.genesis,
logo: <img src={i('logos/exchanges/genesis.svg')} alt="Genesis" width={150} />,
},
]
])
class ExchangePage extends PureComponent<Props> {
render() {

Loading…
Cancel
Save