on master help sign in
cleanup linter errors
commit49d35eb94c0a3c9916b6c69fde9e86313454b887 authorLiam Fitzgerald <liam@urizen.co> dateThu 13 Feb 2020, 12:20 (7 years ago) parent1352bb6
7 files changed+4−15
src/lib/useEthereumTransaction.js+1 src/views/Invite/Cohort.js−1 src/views/Point.js+1−1 src/views/Senate.js+1−2 src/views/UrbitOS/ChangeSponsor.js−6 src/views/UrbitOS/Home.js−1 src/views/UrbitOS/NetworkingKeys.js+1−4
src/lib/useEthereumTransaction.js+1
@@ -204,6 +204,7 @@ export default function useEthereumTransaction(
204204 pointCursor,
205205 setError,
206206 signedTransactions,
207+ walletType,
207208 ]);
208209
209210 const reset = useCallback(() => {
src/views/Invite/Cohort.js−1
@@ -12,7 +12,6 @@ import Tabs from 'components/Tabs';
1212import BarGraph from 'components/BarGraph';
1313import MaybeSigil from 'components/MaybeSigil';
1414import { matchBlinky } from 'components/Blinky';
15−import { ForwardButton } from 'components/Buttons';
1615import Chip from 'components/Chip';
1716import Crumbs from 'components/Crumbs';
1817
src/views/Point.js+1−1
@@ -12,7 +12,7 @@ import Greeting from 'components/Greeting';
1212import Passport from 'components/Passport';
1313import { ForwardButton, BootUrbitOSButton } from 'components/Buttons';
1414import CopyButton from 'components/CopyButton';
15−import Blinky, { matchBlinky } from 'components/Blinky';
15+import Blinky from 'components/Blinky';
1616import BarGraph from 'components/BarGraph';
1717import Chip from 'components/Chip';
1818import InviteSigilList from 'components/InviteSigilList';
src/views/Senate.js+1−2
@@ -10,8 +10,6 @@ import useEthereumTransaction from 'lib/useEthereumTransaction';
1010import { GAS_LIMITS } from 'lib/constants';
1111import { useLocalRouter } from 'lib/LocalRouter';
1212
13−import { keccak256 } from 'lib/wallet';
14−
1513import ViewHeader from 'components/ViewHeader';
1614import InlineEthereumTransaction from 'components/InlineEthereumTransaction';
1715import View from 'components/View';
@@ -83,6 +81,7 @@ export default function Senate() {
8381 return;
8482 }, [_contracts, _point]);
8583
84+ // eslint-disable-next-line
8685 const [open, closed] = useMemo(() => {
8786 let open = [];
8887 let closed = [];
src/views/UrbitOS/ChangeSponsor.js−6
@@ -48,14 +48,10 @@ function ChangeSponsor({ onDone }) {
4848 const _contracts = need.contracts(contracts);
4949 const { construct, unconstruct, inputsLocked, bind } = useChangeSponsor();
5050
51− const [newSponsor, setNewSponsor] = useState(false);
52−
5351 const validateFormAsync = useCallback(
5452 async values => {
5553 const sponsor = ob.patp2dec(values.sponsor);
5654 const details = await azimuth.getPoint(_contracts, sponsor);
57− console.log(details);
58− console.log(details.keyRevisionNumber);
5955
6056 if (details.keyRevisionNumber === 0) {
6157 return { sponsor: 'Sponsor is not online' };
@@ -89,7 +85,6 @@ function ChangeSponsor({ onDone }) {
8985 ({ valid, values }) => {
9086 if (valid) {
9187 construct(ob.patp2dec(values.sponsor));
92− setNewSponsor(values.sponsor);
9388 } else {
9489 unconstruct();
9590 }
@@ -167,7 +162,6 @@ function CurrentEscape({ onDone }) {
167162}
168163
169164export default function UrbitOSChangeSponsor() {
170− const { contracts } = useNetwork();
171165 const { pointCursor } = usePointCursor();
172166
173167 const point = need.point(pointCursor);
src/views/UrbitOS/Home.js−1
@@ -9,7 +9,6 @@ import useCurrentPointName from 'lib/useCurrentPointName';
99import * as need from 'lib/need';
1010
1111import { OutButton, ForwardButton } from 'components/Buttons';
12−import ViewHeader from 'components/ViewHeader';
1312
1413import BridgeForm from 'form/BridgeForm';
1514import { useLocalRouter } from 'lib/LocalRouter';
src/views/UrbitOS/NetworkingKeys.js+1−4
@@ -126,7 +126,7 @@ function useSetKeys() {
126126}
127127
128128export default function UrbitOSNetworkingKeys() {
129− const { push, names, pop } = useLocalRouter();
129+ const { pop } = useLocalRouter();
130130 const { pointCursor } = usePointCursor();
131131 const { getDetails } = usePointCache();
132132
@@ -141,7 +141,6 @@ export default function UrbitOSNetworkingKeys() {
141141 });
142142
143143 const {
144− isDefaultState,
145144 construct,
146145 unconstruct,
147146 broadcasting,
@@ -196,8 +195,6 @@ export default function UrbitOSNetworkingKeys() {
196195 []
197196 );
198197
199− const goRelocate = useCallback(() => push(names.RELOCATE), [push, names]);
200−
201198 const usageMessage = 'You need this to authenticate with arvo';
202199
203200 const renderTitle = () => {