- Moved components to a new layout directory for better organization. - Updated App component to include GroupView and adjust routing. - Removed unused components (App.jsx, Card.jsx, CardContainer.jsx, Header.jsx, MenuButton.jsx, SideMenu.jsx, ThemeButton.jsx). - Introduced LoadingIcon component for loading states. - Updated PollutionMap, SummaryCards, and HistoryCharts components to accept groupId as a prop. - Modified API endpoint configurations in settings.prod.json for better clarity and consistency. - Enhanced chart options in historyChartConfig for improved visual representation. - Updated favicon and logo images.
19 lines
470 B
JavaScript
19 lines
470 B
JavaScript
import "@/css/MenuButton.css";
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
import { faBars } from '@fortawesome/free-solid-svg-icons';
|
|
import PropTypes from "prop-types";
|
|
|
|
const MenuButton = ({ onClick }) => {
|
|
return (
|
|
<button className="menuBtn" onClick={onClick}>
|
|
<FontAwesomeIcon icon={faBars} />
|
|
</button>
|
|
);
|
|
}
|
|
|
|
MenuButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default MenuButton; |