on master help sign in
Linting
commitbd7ed64dcd12054f8936b0dbf7f3e618ad20c996 authorWill Galebach <willbach@gmail.com> dateWed 3 Nov 2021, 21:52 (5 years ago) parent4f027ea
9 files changed+13−19
src/components/InlineEthereumTransaction.js−2 src/components/L2/Dropdowns/FeeDropdown.tsx+1−1 src/components/NetworkingKeys.js+1−1 src/lib/useRoller.ts+8−4 src/store/network.js−1 src/views/Invite/Cohort.tsx−1 src/views/Login.tsx+1−4 src/views/Login/WalletConnect.tsx+1−4 src/views/UrbitID/ResetKeys.js+1−1
src/components/InlineEthereumTransaction.js−2
@@ -12,7 +12,6 @@ import BridgeForm from 'form/BridgeForm';
1212import { GenerateButton, ForwardButton, RestartButton } from './Buttons';
1313import ProgressButton from './ProgressButton';
1414import NeedFundsNotice from './NeedFundsNotice';
15−import NoticeBox from './NoticeBox';
1615
1716import './InlineEthereumTransaction.scss';
1817import FeeDropdown from './L2/Dropdowns/FeeDropdown';
@@ -58,7 +57,6 @@ export default function InlineEthereumTransaction({
5857 const showLoadingButton = broadcasted || confirmed;
5958 const canBroadcast = signed && !needFunds;
6059 // show signed tx only when signing (for offline usage)
61− const showSignedTx = signed;
6260
6361 const validate = useMemo(
6462 () =>
src/components/L2/Dropdowns/FeeDropdown.tsx+1−1
@@ -96,4 +96,4 @@ export default function FeeDropdown({
9696 </Box>
9797 </Dropdown>
9898 );
99−};
99+}
src/components/NetworkingKeys.js+1−1
@@ -1,5 +1,5 @@
11import React from 'react';
2−import { Grid, Flex, H5, Text } from 'indigo-react';
2+import { Grid, Flex, H5 } from 'indigo-react';
33import { Just, Nothing } from 'folktale/maybe';
44
55import { formatDotsWithTime } from 'lib/dateFormat';
src/lib/useRoller.ts+8−4
@@ -123,10 +123,14 @@ export default function useRoller() {
123123 });
124124 }, [api]); // eslint-disable-line react-hooks/exhaustive-deps
125125
126− const ls = new SecureLS({
127− isCompression: false,
128− encryptionSecret: authToken.getOrElse('default'),
129− });
126+ const ls = useMemo(
127+ () =>
128+ new SecureLS({
129+ isCompression: false,
130+ encryptionSecret: authToken.getOrElse('default'),
131+ }),
132+ [authToken]
133+ );
130134
131135 const generateInviteCodes = useCallback(
132136 async (numInvites: number) => {
src/store/network.js−1
@@ -84,7 +84,6 @@ function _useNetwork(initialNetworkType = null) {
8484 }
8585 case NETWORK_TYPES.ROPSTEN: {
8686 const endpoint = `https://ropsten.infura.io/v3/${process.env.REACT_APP_INFURA_ENDPOINT}`;
87− console.log('ENDPOINT', endpoint)
8887
8988 initWeb3(
9089 new Web3.providers.HttpProvider(endpoint),
src/views/Invite/Cohort.tsx−1
@@ -1,7 +1,6 @@
11import React, { useEffect, useCallback, useState } from 'react';
22import { Grid, Button } from 'indigo-react';
33import * as azimuth from 'azimuth-js';
4−import { Just } from 'folktale/maybe';
54import {
65 Icon,
76 Row,
src/views/Login.tsx+1−4
@@ -1,4 +1,4 @@
1−import React, { useCallback, useState } from 'react';
1+import React, { useCallback } from 'react';
22import { Grid, Text, Flex } from 'indigo-react';
33
44import { versionLabel } from 'lib/flags';
@@ -17,9 +17,6 @@ export default function Login() {
1717 const { push, names }: any = useHistory();
1818 const flow: any = useFlowCommand();
1919
20− // inputs
21− const [isOther, setisOther] = useState(false);
22−
2320 const goHome = useCallback(() => {
2421 if (!flow) {
2522 push(names.POINTS);
src/views/Login/WalletConnect.tsx+1−4
@@ -55,10 +55,7 @@ const WalletConnectLogin = ({ className, goHome }) => {
5555 <LegacyText as="div">
5656 {address ? abbreviateAddress(address) : null}
5757 </LegacyText>
58− <RestartButton
59− as="a"
60− className={'gray3'}
61− onClick={disconnect}>
58+ <RestartButton as="a" className={'gray3'} onClick={disconnect}>
6259 disconnect
6360 </RestartButton>
6461 </Grid.Item>
src/views/UrbitID/ResetKeys.js+1−1
@@ -1,6 +1,6 @@
11import React, { useCallback, useState } from 'react';
22import { Just, Nothing } from 'folktale/maybe';
3−import { Grid, Flex } from 'indigo-react';
3+import { Flex } from 'indigo-react';
44
55import { LocalRouterProvider } from 'lib/LocalRouter';
66import useRouter from 'lib/useRouter';