Skip to content

Commit b876dfa

Browse files
committed
* Yarn upgrade
* Code cleanup * Dependency upgrades
1 parent d0f964f commit b876dfa

File tree

6 files changed

+180
-201
lines changed

6 files changed

+180
-201
lines changed

.yarn/releases/yarn-2.1.1.cjs

Lines changed: 0 additions & 86 deletions
This file was deleted.

.yarn/releases/yarn-2.2.2.cjs

Lines changed: 55 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins:
44
- path: .yarn/plugins/yarn-up-all-plugin.cjs
55
spec: "https://github.com/e5mode/yarn-up-all/releases/download/1.0.2/index.js"
66

7-
yarnPath: .yarn/releases/yarn-2.1.1.cjs
7+
yarnPath: .yarn/releases/yarn-2.2.2.cjs

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
},
7171
"devDependencies": {
7272
"concurrently": "^5.3.0",
73-
"electron": "^9.2.1",
74-
"electron-builder": "^22.8.0",
73+
"electron": "^10.1.2",
74+
"electron-builder": "^22.8.1",
7575
"eslint-config-airbnb": "^18.2.0",
7676
"eslint-plugin-import": "^2.22.0",
7777
"eslint-plugin-jsx-a11y": "^6.3.1",
78-
"eslint-plugin-react": "^7.20.6",
79-
"eslint-plugin-react-hooks": "^4.1.0",
78+
"eslint-plugin-react": "^7.21.0",
79+
"eslint-plugin-react-hooks": "^4.1.2",
8080
"wait-on": "^5.2.0"
8181
}
8282
}

src/components/Hash/index.jsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,27 @@ const Hash = ({
2424
let compareColor = null;
2525
let compareIcon = null;
2626
if (compareString && compareString === content) {
27-
compareIcon = <CheckIcon color="inherit" style={{ float: 'right' }} />;
27+
compareIcon = <CheckIcon color="inherit" style={{ float: 'right' }}/>;
2828
compareColor = { color: 'green' };
2929
}
3030

3131
return (
32-
<>
33-
<Paper className={classes.paper}>
34-
<Typography variant="subtitle1" color="primary" gutterBottom>
35-
{hashType}
36-
{compareIcon}
37-
</Typography>
38-
<MenuProvider id={`hashMenu${id}`}>
39-
<span style={compareColor}>{content}</span>
40-
</MenuProvider>
41-
<Menu id={`hashMenu${id}`}>
42-
<Item onClick={() => navigator.clipboard.writeText(content)}>
43-
<CopyIcon />
44-
{' '}
45-
{copy}
46-
</Item>
47-
</Menu>
48-
</Paper>
49-
</>
32+
<Paper className={classes.paper}>
33+
<Typography variant="subtitle1" color="primary" gutterBottom>
34+
{hashType}
35+
{compareIcon}
36+
</Typography>
37+
<MenuProvider id={`hashMenu${id}`}>
38+
<span style={compareColor}>{content}</span>
39+
</MenuProvider>
40+
<Menu id={`hashMenu${id}`}>
41+
<Item onClick={() => navigator.clipboard.writeText(content)}>
42+
<CopyIcon/>
43+
{' '}
44+
{copy}
45+
</Item>
46+
</Menu>
47+
</Paper>
5048
);
5149
};
5250

0 commit comments

Comments
 (0)