Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: FordoA455 <[email protected]>
  • Loading branch information
FordoA455 committed Nov 19, 2024
1 parent 1ecebe0 commit 07c2f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import react, { useState, useRef } from 'react';
import { useState, useRef } from 'react';
import "./App.css";
import Button from "@mui/joy/Button";
import arrow from "./images/arrow.png";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";

function App() {
const [selectedScrollOption, setSelectedScrollOption] = useState("");
const home = useRef(null);
const info = useRef(null);
const schedule = useRef(null);
Expand All @@ -22,7 +21,6 @@ function App() {
};

const handleOptionChange = (option: any) => {
setSelectedScrollOption(option);
if (option === 'home') {
scroll(home);
} else if (option === "info") {
Expand Down Expand Up @@ -55,7 +53,7 @@ function App() {
href="https://docs.google.com/forms/d/e/1FAIpQLSefTr6730BXSMYYdAnDXS5hFu_NZ5FHyzNYkv2MYqZoxvkgyQ/viewform"
>
ALERT ME
<img src={arrow} height="25" width="25" id="arrow"/>
<img src={arrow} height="25" width="25" id="arrow" alt="arrow-icon"/>
</Button>
</div>
<div className="info" ref={info}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Navbar({ onOptionSelect }: any) {
return (
<div style={{width: "100%", backgroundColor: "black", zIndex: "10"}}>
<div style={{display: "flex", paddingLeft: "9%", paddingTop: "3%"}}>
<img src={logo} width="60" height="60" />
<img src={logo} alt="mvhackslogo" width="60" height="60" />
<Link overlay underline="none" sx={{ display: 'flex', flexDirection: 'column', alignItems: 'start'}} onClick = {() => onOptionSelect('home')}>
<Typography sx={{color: "white", paddingLeft: "10%"}} level="h2">MV</Typography>
<Typography sx={{color: "white", paddingLeft: "10%"}} level="h2" noWrap={true}>HACKS 8.0</Typography>
Expand Down

0 comments on commit 07c2f15

Please sign in to comment.