6532efdfad
show superchats in order properly scroll properly when switching tabs calculate fiat tips properly sum up lbc amounts refactor code a bit remove why isnt this working bit bugfix cant tip fiat if no lbc balance add toast when someone does a tip for a comment add error toast for card page show error on account connection page automatically truncate to two decimals close to working perfectly show decimals value better increase size of input value one bug left but almost working perfectly reverse so newest transactions come first fixing bug caused by floating point precision eslint fixes remove unused conditional get stuff ready for merge bugfix and cleanup requested changes fixing flow errors fix last flow error and touchups fiat and lbc tabs coming along support setting currency as the default tab via query param add wallet fiat balance fixing naming add fiat transactions using es6 to populate data should be fine but keeps crashing transaction listing working add no transactions thing about to add a third tab add third tab add card last 4 to transaction history some renaming show payments successfully show filler for subscriptions display if no transactions or subs working but in the wrong component approaching something thats working showing total tipped amount about to add last couple features cleanup More touchups adding last features calculate the total amount of unique creators tipped couple touchups remove transaction listings from settings add view transactions buttons small optimization add subscriptions section fix lot of linting errors and make command more userful
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectBalance,
|
|
selectClaimsBalance,
|
|
selectSupportsBalance,
|
|
selectTipsBalance,
|
|
selectIsFetchingUtxoCounts,
|
|
selectUtxoCounts,
|
|
doFetchUtxoCounts,
|
|
doUtxoConsolidate,
|
|
selectIsConsolidatingUtxos,
|
|
selectIsMassClaimingTips,
|
|
selectPendingConsolidateTxid,
|
|
selectPendingMassClaimTxid,
|
|
} from 'lbry-redux';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import { selectSyncHash } from 'redux/selectors/sync';
|
|
import { selectClaimedRewards } from 'redux/selectors/rewards';
|
|
import WalletBalance from './view';
|
|
|
|
const select = state => ({
|
|
balance: selectBalance(state),
|
|
claimsBalance: selectClaimsBalance(state) || 0,
|
|
supportsBalance: selectSupportsBalance(state) || 0,
|
|
tipsBalance: selectTipsBalance(state) || 0,
|
|
rewards: selectClaimedRewards(state),
|
|
hasSynced: Boolean(selectSyncHash(state)),
|
|
fetchingUtxoCounts: selectIsFetchingUtxoCounts(state),
|
|
consolidatingUtxos: selectIsConsolidatingUtxos(state),
|
|
massClaimingTips: selectIsMassClaimingTips(state),
|
|
utxoCounts: selectUtxoCounts(state),
|
|
consolidateIsPending: selectPendingConsolidateTxid(state),
|
|
massClaimIsPending: selectPendingMassClaimTxid(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doOpenModal,
|
|
doFetchUtxoCounts,
|
|
doUtxoConsolidate,
|
|
})(WalletBalance);
|