Skip to content

Commit

Permalink
cleaned up values no longer being used, and also cleaned up values th…
Browse files Browse the repository at this point in the history
…at no longer exist from being used
  • Loading branch information
andreweximchain committed Oct 14, 2018
1 parent a8230a1 commit 0e04351
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions common/components/ElectronNav/ElectronNav.tsx
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import translate from 'translations';
import { navigationLinks, Theme } from 'config';
import { navigationLinks } from 'config';
import NavigationLink from 'components/NavigationLink';
import NetworkSelect from './NetworkSelect';
import LanguageSelect from './LanguageSelect';
Expand Down Expand Up @@ -83,13 +83,13 @@ class ElectronNav extends React.Component<Props, State> {
);
}

private openLanguageSelect = () => {
const panelContent = <LanguageSelect closePanel={this.closePanel} />;
this.setState({
panelContent,
isPanelOpen: true
});
};
// private openLanguageSelect = () => {
// const panelContent = <LanguageSelect closePanel={this.closePanel} />;
// this.setState({
// panelContent,
// isPanelOpen: true
// });
// };

private openNodeSelect = () => {
const panelContent = <NetworkSelect closePanel={this.closePanel} />;
Expand Down
8 changes: 4 additions & 4 deletions common/components/Footer/ThemeToggle.tsx
Expand Up @@ -27,10 +27,10 @@ class ThemeToggle extends React.Component<Props> {
);
}

private toggleTheme = () => {
const theme = this.props.theme === Theme.LIGHT ? Theme.DARK : Theme.LIGHT;
this.props.changeTheme(theme);
};
// private toggleTheme = () => {
// const theme = this.props.theme === Theme.LIGHT ? Theme.DARK : Theme.LIGHT;
// this.props.changeTheme(theme);
// };
}

export default connect(
Expand Down
2 changes: 1 addition & 1 deletion common/components/WalletDecrypt/components/LedgerNano.tsx
@@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';

import { SecureWalletName, ledgerReferralURL, HELP_ARTICLE } from 'config';
import { SecureWalletName, HELP_ARTICLE } from 'config';
import translate, { translateRaw } from 'translations';
import { LedgerWallet } from 'libs/wallet';
import { NetworkConfig } from 'types/network';
Expand Down
2 changes: 1 addition & 1 deletion common/containers/Tabs/Swap/components/CurrentRates.tsx
Expand Up @@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import sample from 'lodash/sample';
import times from 'lodash/times';

import { bityReferralURL, shapeshiftReferralURL } from 'config';
import { bityReferralURL } from 'config';
import translate from 'translations';
import { SHAPESHIFT_WHITELIST } from 'api/shapeshift';
import { AppState } from 'features/reducers';
Expand Down
5 changes: 2 additions & 3 deletions common/containers/Tabs/Swap/components/SupportFooter.tsx
Expand Up @@ -28,9 +28,7 @@ class SupportFooter extends React.PureComponent<Props, {}> {
destinationAddress,
paymentAddress,
reference,
provider,
shapeshiftRates,
bityRates
provider
} = this.props;
const pair = origin && destination ? origin.label + destination.label : 'BTCETH';
// const rates = provider === 'shapeshift' ? shapeshiftRates.byId : bityRates.byId;
Expand All @@ -42,6 +40,7 @@ class SupportFooter extends React.PureComponent<Props, {}> {
const serviceProvider = provider.charAt(0).toUpperCase() + provider.slice(1);
let mailBody;
let fallbackBody;
//we dont have rates regarding eth to exc swaps so not sure what to do here. -Andrew
if (pair && rates && rates[pair]) {
mailBody = encodeURI(`Please include the below if this issue is regarding your order.
Expand Down
@@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';

import { shapeshiftReferralURL, bitboxReferralURL } from 'config';
// import { shapeshiftReferralURL, bitboxReferralURL } from 'config';
import translate from 'translations';
import { RestartSwapAction } from 'features/swap/types';
import bityLogo from 'assets/images/logo-bity.svg';
Expand Down

0 comments on commit 0e04351

Please sign in to comment.