Skip to content

Commit

Permalink
Added 2023 table and changed drop down styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenh17 committed Oct 13, 2023
1 parent 617b67f commit 1b9a3ce
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions src/pages/admin/Memberships/Memberships.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ import {
import {
makeStyles, useTheme
} from "@material-ui/core/styles";
import {
FormControl, InputLabel, Select, MenuItem,
List,
ListItem,
ListItemText,
Typography,
Chip,
} from "@material-ui/core";
import useMediaQuery from "@material-ui/core/useMediaQuery";
// import ListIcon from "@material-ui/icons/List";
import StarBorderIcon from "@material-ui/icons/StarBorder";
Expand All @@ -21,13 +29,6 @@ import Questions from "./Questions/Questions";
import Summary from "./Summary/Summary";
// import Individual from "./Individual/Individual";

import {
List,
ListItem,
ListItemText,
Typography,
Chip,
} from "@material-ui/core";

const PERSONALIZATION_STATES = {
SUMMARY: {
Expand All @@ -49,6 +50,16 @@ const PERSONALIZATION_STATES = {
};

const useStyles = makeStyles((theme) => ({
formControl: {
margin: theme.spacing(1),
minWidth: 120,
"& .MuiOutlinedInput-root, & .MuiOutlinedInput-root fieldset": {
borderColor: `${COLORS.BIZTECH_GREEN}`,
},
"& .MuiInputLabel-outlined, & .MuiSelect-outlined, & .MuiSelect-icon": {
color: `${COLORS.BIZTECH_GREEN}`,
}
},
container: {
display: "flex",
flexDirection: "row",
Expand Down Expand Up @@ -138,11 +149,20 @@ function Memberships() {
<title>BizTech Memberships</title>
</Helmet>

<select value={selectedYear} onChange={e => setSelectedYear(e.target.value)}>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2024">2024</option>
</select>
<FormControl variant="outlined" className={classes.formControl}>
<InputLabel id="year-label">Year</InputLabel>
<Select
labelId="year-label"
value={selectedYear}
onChange={e => setSelectedYear(e.target.value)}
label="Year"
>
<MenuItem value="2021">2021</MenuItem>
<MenuItem value="2022">2022</MenuItem>
<MenuItem value="2023">2023</MenuItem>
<MenuItem value="2024">2024</MenuItem>
</Select>
</FormControl>

<div className={classes.container}>
{/* Left panel for additional event filters (only on desktop view) */}
Expand Down

0 comments on commit 1b9a3ce

Please sign in to comment.