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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
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() { |
|
|
|