source: imaps-frontend/src/components/FilterBar/FilterBar.jsx

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import React from "react";
2import styles from "./FilterBar.module.css";
3
4function FilterBar() {
5 const filterLocation = (category) => {
6 console.log(`Filter locations by: ${category}`);
7 // filtering logic
8 };
9
10 return (
11 <div className={styles.wrapper}>
12 <div className={styles.scrollableContainer}>
13 <button className={styles.buttonValue} onClick={() => filterLocation("all")}>
14 All
15 </button>
16 <button className={styles.buttonValue} onClick={() => filterLocation("Classrooms")}>
17 Classrooms
18 </button>
19 <button className={styles.buttonValue} onClick={() => filterLocation("Administrative")}>
20 Administrative
21 </button>
22 <button className={styles.buttonValue} onClick={() => filterLocation("Labs")}>
23 Labs
24 </button>
25 <button className={styles.buttonValue} onClick={() => filterLocation("Restrooms")}>
26 Restrooms
27 </button>
28 <button className={styles.buttonValue} onClick={() => filterLocation("Cafeteria")}>
29 Cafeteria
30 </button>
31 </div>
32 </div>
33 );
34}
35
36export default FilterBar;
Note: See TracBrowser for help on using the repository browser.