Skip to content

Commit 31d9c2f

Browse files
author
lucifer
committed
fix: eslint
1 parent 5a5cba1 commit 31d9c2f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/codeTemplates/codeTemplate.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default function CodeTemplate({ tempaltes }) {
2121
<div>
2222
{tempalte.title}
2323
<img
24+
alt={tempalte.title}
2425
style={
2526
tempalte.logo
2627
? { margin: "0 0 0 10px" }

src/complexityRating/index.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const data = [
7474
},
7575
];
7676

77-
export default function ComplexityRating({}) {
77+
export default function ComplexityRating() {
7878
return (
7979
<div>
8080
<Button
@@ -86,7 +86,10 @@ export default function ComplexityRating({}) {
8686
</Button>
8787

8888
<div>
89-
<img src="https://tva1.sinaimg.cn/large/0081Kckwly1gm6x8pzqotj30ad03q3ye.jpg" />
89+
<img
90+
alt="2^n"
91+
src="https://tva1.sinaimg.cn/large/0081Kckwly1gm6x8pzqotj30ad03q3ye.jpg"
92+
/>
9093
</div>
9194

9295
<Table columns={columns} dataSource={data} />

src/dataStructureVis/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export default function DataStrutureVis() {
243243
});
244244

245245
return () => window.removeEventListener("resize", onResize);
246-
}, []);
246+
}, [dataSource]);
247247

248248
const updateScene = (data) => {
249249
const sceneData = {

0 commit comments

Comments
 (0)