Refactor application structure and components
- 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.
This commit is contained in:
19
frontend/src/components/layout/MenuButton.jsx
Normal file
19
frontend/src/components/layout/MenuButton.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user