added axios to get menu in Menu Expansion

This commit is contained in:
Ava DeCroix
2023-04-30 15:35:02 -04:00
parent fad3f9a859
commit 63d175f842
3 changed files with 37 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ import MenuItem from '@mui/material/MenuItem';
import {red, green, lightBlue, lightGreen} from '@mui/material/colors';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import { ReactSession } from 'react-client-session';
import Axios from 'axios';
const theme = createTheme({
@@ -56,44 +57,46 @@ const menuExpansion = () => {
}
const setStarbucks = () => {
ReactSession.set("eatery", "Starbucks");
ReactSession.set("eatery", 6);
menuExpansion();
}
const setChick = () => {
ReactSession.set("eatery", "Chick-fil-a");
ReactSession.set("eatery", 2);
menuExpansion();
}
const setABP = () => {
ReactSession.set("eatery", "Au Bon Pain");
ReactSession.set("eatery", 5);
menuExpansion();
}
const setMoma = () => {
ReactSession.set("eatery", "Modern Market");
ReactSession.set("eatery", 7);
menuExpansion();
}
const setTaco = () => {
ReactSession.set("eatery", "Taco Bell");
ReactSession.set("eatery", 8);
menuExpansion();
}
const setDH = () => {
ReactSession.set("eatery", "Dining Hall");
ReactSession.set("eatery", 1);
menuExpansion();
}
const setFlip = () => {
ReactSession.set("eatery", "Flip Kitchen");
ReactSession.set("eatery", 4);
menuExpansion();
}
const setSmash = () => {
ReactSession.set("eatery", "Smashburger");
ReactSession.set("eatery", 3);
menuExpansion();
}