Skip to content

Commit

Permalink
Comment unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed May 6, 2021
1 parent f1430b1 commit cad7da5
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/pages/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import { IconRightArrow } from '../../components/icons';
import { RouteComponentProps, withRouter } from 'react-router';
import './style.scss';
import PageDescription from '../../components/PageDescription';
import {
setElectrumServer,
storeTheme,
} from '../../redux/actions/settingsActions';
import { setElectrumServer } from '../../redux/actions/settingsActions';
import { useDispatch, useSelector } from 'react-redux';
import PinModal from '../../components/PinModal';
import { getMnemonicFromSecureStorage } from '../../utils/storage-helper';
Expand All @@ -43,14 +40,12 @@ import ButtonsMainSub from '../../components/ButtonsMainSub';
const { Device } = Plugins;

const Settings: React.FC<RouteComponentProps> = ({ history }) => {
const { explorerUrl, theme, currency, unitLBTC } = useSelector(
(state: any) => ({
explorerUrl: state.settings.explorerUrl,
currency: state.settings.currency,
theme: state.settings.theme,
unitLBTC: state.settings.denominationLBTC,
})
);
const { explorerUrl, currency, unitLBTC } = useSelector((state: any) => ({
explorerUrl: state.settings.explorerUrl,
currency: state.settings.currency,
theme: state.settings.theme,
unitLBTC: state.settings.denominationLBTC,
}));
const [showExplorerModal, setShowExplorerModal] = useState(false);
const [explorerValue, setExplorerValue] = useState(explorerUrl);
const [modalOpen, setModalOpen] = useState(false);
Expand All @@ -75,11 +70,11 @@ const Settings: React.FC<RouteComponentProps> = ({ history }) => {
setExplorerValue(value);
};

const handleThemeChange = (e: any) => {
/* const handleThemeChange = (e: any) => {
const { checked } = e.detail;
const newTheme = checked ? 'dark' : 'light';
dispatch(storeTheme(newTheme));
};
}; */

const onPinConfirm = (pin: string) => {
getMnemonicFromSecureStorage(pin)
Expand Down

0 comments on commit cad7da5

Please sign in to comment.