Skip to content

Commit cae51a2

Browse files
authored
Merge pull request #38 from Computer-Science-Club-OCC/Apply-Linter-Rules
Apply linter rules
2 parents fdddffa + 5afd7aa commit cae51a2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/activity/Activity.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@ function Tab() {
2828
<button
2929
type="button"
3030
onClick={() => toggleTab(1)}
31-
className={tabState == 1 ? "tab-button active" : "tab-button"}
31+
className={tabState === 1 ? "tab-button active" : "tab-button"}
3232
>
3333
Events
3434
</button>
3535
<button
3636
type="button"
3737
onClick={() => toggleTab(2)}
38-
className={tabState == 2 ? "tab-button active" : "tab-button"}
38+
className={tabState === 2 ? "tab-button active" : "tab-button"}
3939
>
4040
Projects
4141
</button>
4242
</div>
4343
<div className="tab-contents">
4444
<div
4545
className={
46-
tabState == 1 ? "tab-content active-content" : "tab-content"
46+
tabState === 1 ? "tab-content active-content" : "tab-content"
4747
}
4848
>
4949
<h2>Title 1</h2>
50-
<img src="#" />
50+
<img src="#" alt="temp" />
5151
<p>
5252
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
5353
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
@@ -57,11 +57,11 @@ function Tab() {
5757
</div>
5858
<div
5959
className={
60-
tabState == 2 ? "tab-content active-content" : "tab-content"
60+
tabState === 2 ? "tab-content active-content" : "tab-content"
6161
}
6262
>
6363
<h2>Title 2</h2>
64-
<img src="#" />
64+
<img src="#" alt="temp" />
6565

6666
<p>
6767
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do

src/navbar/NavigationBar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ function NavigationBar() {
4343
<div
4444
className="nav-toggle-icons"
4545
onClick={() => setIsSwitch(prev => !prev)}
46+
role="button"
47+
tabIndex={0}
4648
>
4749
{isSwitch ? (
4850
<Clear className="nav-toggle-icon" fontSize="large" />

src/resources/Resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BookOnline } from "@mui/icons-material";
22
import React, { useState, useEffect, useRef } from "react";
33
import { useLocation } from "react-router-dom";
44
import "./resources.css";
5-
import Tutorials from "./Tutorials.js";
5+
import Tutorials from "./Tutorials";
66
import Research from "./Research";
77
import Organizations from "./Organizations";
88

0 commit comments

Comments
 (0)