Browse Source

outdated basilisk modals leftover cleanup

all-modes
pbca26 8 years ago
parent
commit
68cfa71bc0
  1. 28
      react/src/actions/actionCreators.js
  2. 10
      react/src/components/dashboard/sendCoin/sendCoin.js
  3. 10
      react/src/components/dashboard/walletsData/walletsData.js

28
react/src/actions/actionCreators.js

@ -107,34 +107,6 @@ export function toggleDashboardTxInfoModal(display, txIndex) {
}
}
export function basiliskConnectionState(display, json) {
return {
type: BASILISK_CONNECTION,
basiliskConnection: display,
progress: json,
}
}
export function basiliskRefreshState(display, json) {
return {
type: BASILISK_REFRESH,
basiliskRefresh: display,
progress: json,
}
}
export function basiliskRefresh(display) {
return dispatch => {
dispatch(basiliskRefreshState(display));
}
}
export function basiliskConnection(display) {
return dispatch => {
dispatch(basiliskConnectionState(display));
}
}
export function syncingNativeModeState(display, json) {
return {
type: SYNCING_NATIVE_MODE,

10
react/src/components/dashboard/sendCoin/sendCoin.js

@ -10,7 +10,6 @@ import {
import {
resolveOpenAliasAddress,
triggerToaster,
basiliskRefresh,
shepherdGroomPostPromise,
edexGetTransaction,
getCacheFile,
@ -128,13 +127,6 @@ class SendCoin extends React.Component {
currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength,
}));
}
if (data &&
data.message &&
data.message.shepherd.method &&
data.message.shepherd.method === 'cache-one' &&
data.message.shepherd.status === 'done') {
Store.dispatch(basiliskRefresh(false));
}
}
_fetchNewUTXOData() {
@ -893,7 +885,7 @@ const mapStateToProps = (state) => {
}
};
};
export default connect(mapStateToProps)(SendCoin);

10
react/src/components/dashboard/walletsData/walletsData.js

@ -5,8 +5,6 @@ import { sortByDate } from '../../../util/sort';
import { formatValue } from '../../../util/formatValue';
import Config from '../../../config';
import {
basiliskRefresh,
basiliskConnection,
toggleDashboardTxInfoModal,
getBasiliskTransactionsList,
changeMainBasiliskAddress,
@ -235,13 +233,6 @@ class WalletsData extends React.Component {
currentStackLength: data.message.shepherd.iguanaAPI.currentStackLength,
});
}
if (data &&
data.message &&
data.message.shepherd.method &&
data.message.shepherd.method === 'cache-one' &&
data.message.shepherd.status === 'done') {
Store.dispatch(basiliskRefresh(false));
}
if (Object.keys(stateObj).length) {
this.setState(Object.assign({}, this.state, stateObj));
@ -657,7 +648,6 @@ const mapStateToProps = (state) => {
Dashboard: {
activeHandle: state.Dashboard.activeHandle,
displayViewCacheModal: state.Dashboard.displayViewCacheModal,
basiliskConnection: state.Dashboard.basiliskConnection,
progress: state.Dashboard.progress,
},
Main: {

Loading…
Cancel
Save