crypto_addresses -> cryptoAddresses

merge-requests/522/head
Alex Gleason 2021-06-10 12:57:16 -05:00
rodzic acfca37dec
commit 6f1ce38473
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ import { List as ImmutableList } from 'immutable';
import classNames from 'classnames';
const mapStateToProps = state => {
const addresses = state.getIn(['soapbox', 'crypto_addresses'], ImmutableList());
const addresses = state.getIn(['soapbox', 'cryptoAddresses'], ImmutableList());
return {
total: addresses.size,
siteTitle: state.getIn(['instance', 'title']),

Wyświetl plik

@ -8,7 +8,7 @@ import CryptoAddress from './crypto_address';
const mapStateToProps = (state, ownProps) => {
// Address example:
// {"ticker": "btc", "address": "bc1q9cx35adpm73aq2fw40ye6ts8hfxqzjr5unwg0n", "note": "This is our main address"}
const addresses = state.getIn(['soapbox', 'crypto_addresses']);
const addresses = state.getIn(['soapbox', 'cryptoAddresses']);
const { limit } = ownProps;
return {

Wyświetl plik

@ -22,7 +22,7 @@ const mapStateToProps = state => {
me,
account: state.getIn(['accounts', me]),
hasPatron: soapbox.getIn(['extensions', 'patron', 'enabled']),
hasCrypto: typeof soapbox.getIn(['crypto_addresses', 0, 'ticker']) === 'string',
hasCrypto: typeof soapbox.getIn(['cryptoAddresses', 0, 'ticker']) === 'string',
cryptoLimit: soapbox.getIn(['cryptoDonatePanel', 'limit']),
features: getFeatures(state.get('instance')),
};