Browse Source

Merge pull request #1538 from gre/random-orders-buy-sell

Shuffle the Buy/Trade list
gre-patch-1
Meriadec Pillet 6 years ago
committed by GitHub
parent
commit
78eb2bf571
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/components/ExchangePage/index.js

5
src/components/ExchangePage/index.js

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

Loading…
Cancel
Save