Skip to content

Commit

Permalink
mm-112-menuoptions: updated the import header
Browse files Browse the repository at this point in the history
  • Loading branch information
Purbai committed Aug 1, 2024
1 parent d3efcda commit 973a694
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import './App.scss';
import Home from './Home/Home';
import Header from './Header/header';
import Header from './Header/Header';
import { Quiz } from './Quiz/Quiz';
import Footer from './Footer/Footer';

Expand Down
10 changes: 8 additions & 2 deletions src/Header/header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import React from 'react';
import Hamburger from '../Hamburgerbutton/Hamburgerbutton';

const logo = require('../ImageAssets/marsiokartlogo.jpg')

const Header: React.FC = () => {
const handleHamburgerClick = () => {
console.log('Hamburger menu clicked!');
};

return (
<div className="App">
{/* call to display the hamburger button and menu items */}
<Hamburger />
<Hamburger onClick={handleHamburgerClick} label={""}/>
<img src={logo} alt="Marsio Kart Logo" />
</div>
);
};
Expand Down

0 comments on commit 973a694

Please sign in to comment.