mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-16 05:44:17 -06:00
fix(home, slideshow): better sytling according to eslint
This commit is contained in:
parent
115d2fa1de
commit
4460df50b9
@ -11,6 +11,7 @@ export default function Slideshow() {
|
||||
var slideIndex = 1;
|
||||
useEffect(() => {
|
||||
showSlides(slideIndex);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
const plusSlides = (n) => {
|
||||
@ -45,16 +46,16 @@ export default function Slideshow() {
|
||||
/>
|
||||
);
|
||||
})}
|
||||
<a
|
||||
<p
|
||||
className="prev-button"
|
||||
onClick={() => plusSlides(-1)}>
|
||||
❮
|
||||
</a>
|
||||
<a
|
||||
</p>
|
||||
<p
|
||||
className="next-button"
|
||||
onClick={() => plusSlides(1)}>
|
||||
❯
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user