navigate to menu expansion

This commit is contained in:
Ava DeCroix
2023-04-30 14:14:56 -04:00
parent 7c20cb7ebd
commit 7c4494bdbf
2 changed files with 13 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ function App() {
<Route path='/CreateAccount' element={<CreateAccount/>}></Route>
<Route path='/Menus' element={<Menus/>}></Route>
<Route path='/Plan' element={<Plan/>}></Route>
<Route path='/MenuExpansion' element={<Plan/>}></Route>
<Route path='/MenuExpansion' element={<MenuExpansion/>}></Route>
</Routes>
</Router>
);

View File

@@ -51,36 +51,48 @@ const navigateLogin = () => {
navigate('/');
}
const menuExpansion = () => {
navigate('/MenuExpansion');
}
const setStarbucks = () => {
ReactSession.set("eatery", "Starbucks");
menuExpansion();
}
const setChick = () => {
ReactSession.set("eatery", "Chick-fil-a");
menuExpansion();
}
const setABP = () => {
ReactSession.set("eatery", "Au Bon Pain");
menuExpansion();
}
const setMoma = () => {
ReactSession.set("eatery", "Modern Market");
menuExpansion();
}
const setTaco = () => {
ReactSession.set("eatery", "Taco Bell");
menuExpansion();
}
const setDH = () => {
ReactSession.set("eatery", "Dining Hall");
menuExpansion();
}
const setFlip = () => {
ReactSession.set("eatery", "Flip Kitchen");
menuExpansion();
}
const setSmash = () => {
ReactSession.set("eatery", "Smashburger");
menuExpansion();
}