kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
crypto_addresses -> cryptoAddresses
rodzic
acfca37dec
commit
6f1ce38473
|
@ -9,7 +9,7 @@ import { List as ImmutableList } from 'immutable';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
const addresses = state.getIn(['soapbox', 'crypto_addresses'], ImmutableList());
|
const addresses = state.getIn(['soapbox', 'cryptoAddresses'], ImmutableList());
|
||||||
return {
|
return {
|
||||||
total: addresses.size,
|
total: addresses.size,
|
||||||
siteTitle: state.getIn(['instance', 'title']),
|
siteTitle: state.getIn(['instance', 'title']),
|
||||||
|
|
|
@ -8,7 +8,7 @@ import CryptoAddress from './crypto_address';
|
||||||
const mapStateToProps = (state, ownProps) => {
|
const mapStateToProps = (state, ownProps) => {
|
||||||
// Address example:
|
// Address example:
|
||||||
// {"ticker": "btc", "address": "bc1q9cx35adpm73aq2fw40ye6ts8hfxqzjr5unwg0n", "note": "This is our main address"}
|
// {"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;
|
const { limit } = ownProps;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -22,7 +22,7 @@ const mapStateToProps = state => {
|
||||||
me,
|
me,
|
||||||
account: state.getIn(['accounts', me]),
|
account: state.getIn(['accounts', me]),
|
||||||
hasPatron: soapbox.getIn(['extensions', 'patron', 'enabled']),
|
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']),
|
cryptoLimit: soapbox.getIn(['cryptoDonatePanel', 'limit']),
|
||||||
features: getFeatures(state.get('instance')),
|
features: getFeatures(state.get('instance')),
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue