diff --git a/src/App.test.tsx b/src/App.test.tsx
index d9df128..1296c04 100644
--- a/src/App.test.tsx
+++ b/src/App.test.tsx
@@ -1,9 +1,6 @@
-import React from 'react';
-import { render, screen, fireEvent } from '@testing-library/react';
-import userEvent from '@testing-library/user-event';
+import { render, screen } from '@testing-library/react';
import App from './App';
import "@testing-library/jest-dom";
-import Hamburger from './Hamburgerbutton/Hamburgerbutton';
// remove this test when real tests are added
test('renders header', () => {
@@ -11,14 +8,3 @@ test('renders header', () => {
const header = screen.getAllByText(/MarsioKart/i);
expect(header[0]).toBeInTheDocument();
});
-
-test('calls onClick when Hamburger button is clicked', () => {
- const handleClick = jest.fn();
- render();
-
- const button = screen.getByText('Click Me');
- fireEvent.click(button);
-
- expect(handleClick).toHaveBeenCalledTimes(1);
- });
-
diff --git a/src/App.tsx b/src/App.tsx
index 7d966b4..e4ca821 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,21 +1,22 @@
-import React from 'react';
+import React, { useState } 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';
function App() {
+ const [username, setUsername] = useState("");
return (
} />
+ element={} />
} />
+ element={} />
diff --git a/src/Hamburgerbutton/Hamburgerbutton.tsx b/src/Hamburgerbutton/Hamburgerbutton.tsx
index 505bff2..dbb271c 100644
--- a/src/Hamburgerbutton/Hamburgerbutton.tsx
+++ b/src/Hamburgerbutton/Hamburgerbutton.tsx
@@ -1,26 +1,33 @@
-import React from 'react';
+import React, { useState } from 'react';
import './Hamburgerbutton.scss'; // styling for the hmauburger button icon
+import Menu from '../Menu/Menu';
+import { menuItems } from '../Menu/MenuItems';
-interface HamburgerProps {
- onClick: () => void;
- label: string;
-
-}
-
-const Hamburger: React.FC
= ({ onClick , label}) => {
+const Hamburger: React.FC = () => {
+ const [isOpen, setIsOpen] = useState(false);
const handleClick = () => {
- onClick();
+ // menu items display/not display on click
+ setIsOpen(!isOpen);
+ console.log('Hamburger menu display options!');
+
};
-
return (
-