8000 Lint fixes by voltrevo · Pull Request #111 · getwax/bls-wallet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Lint fixes #111

Merged
merged 4 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
},
"dependencies": {
"@babel/runtime": "^7.14.0",
"@types/axios": "^0.14.0",
"@types/zxcvbn": "^4.4.1",
"advanced-css-reset": "^1.2.2",
"async-mutex": "^0.3.2",
"axios": "^0.25.0",
"bls-wallet-clients": "0.5.3",
"dotenv-webpack": "^7.0.3",
"emoji-log": "^1.0.2",
Expand Down Expand Up @@ -56,7 +58,6 @@
"@babel/preset-env": "^7.14.2",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@types/axios": "^0.14.0",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/webpack": "^4.41.29",
Expand Down
2 changes: 1 addition & 1 deletion extension/source/Popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import WalletHomeScreen from './components/WalletHomeScreen';
import WelcomeScreen from './components/WelcomeScreen';
import KeyEntryScreen from './components/KeyEntryScreen';

import "../styles/index.scss";
import '../styles/index.scss';

type Props = {
appPromise: Promise<App>;
Expand Down
8 changes: 4 additions & 4 deletions extension/source/Popup/components/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { browser } from 'webextension-polyfill-ts';
import { ArrowRight } from 'phosphor-react';
import Button from '../../components/Button';
import Carousel from './Carousel';
import { ArrowRight } from "phosphor-react";

import LargeQuillHeading from './LargeQuillHeading';

Expand All @@ -22,9 +22,9 @@ const WelcomeScreen: React.FunctionComponent = () => (
<div className="mt-2">
<Button
=> {}}
icon={<ArrowRight className='icon-md'/>}
className='btn-primary px-9 py-4'
>
icon={<ArrowRight className="icon-md" />}
className="btn-primary px-9 py-4"
>
Get Started
</Button>
</div>
Expand Down
10 changes: 7 additions & 3 deletions extension/source/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import * as React from 'react';
const Button = (props: {
className?: string;
onPress: () => void;
highlight?: boolean; //TODO - remove dependency
highlight?: boolean; // TODO - remove dependency
loading?: boolean;
children?: React.ReactNode;
icon?: IconProps
icon?: IconProps;
}): React.ReactElement => {
return (
<div
className={props.loading ? 'btn-loading' : `flex gap-2 items-center ${props.className}`}
className={
props.loading
? 'btn-loading'
: `flex gap-2 items-center ${props.className}`
}
>
=> {
if (evt.code === 'Enter') {
Expand Down
6 changes: 3 additions & 3 deletions extension/source/hooks/useInputDecode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const useInputDecode = (
try {
const registryPromise = getMethodFromOnChainRegistry(data);
const etherScanPromise = getMethodFromEtherscan(to, data);
const method = (await registryPromise) ?? (await etherScanPromise);
if (method) {
setMethod(formatMethod(method));
const rawMethod = (await registryPromise) ?? (await etherScanPromise);
if (rawMethod) {
setMethod(formatMethod(rawMethod));
}
} catch (error) {
console.log({ error });
Expand Down
Loading
0