navigate to menu expansion
This commit is contained in:
@@ -23,7 +23,7 @@ function App() {
|
|||||||
<Route path='/CreateAccount' element={<CreateAccount/>}></Route>
|
<Route path='/CreateAccount' element={<CreateAccount/>}></Route>
|
||||||
<Route path='/Menus' element={<Menus/>}></Route>
|
<Route path='/Menus' element={<Menus/>}></Route>
|
||||||
<Route path='/Plan' element={<Plan/>}></Route>
|
<Route path='/Plan' element={<Plan/>}></Route>
|
||||||
<Route path='/MenuExpansion' element={<Plan/>}></Route>
|
<Route path='/MenuExpansion' element={<MenuExpansion/>}></Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -51,36 +51,48 @@ const navigateLogin = () => {
|
|||||||
navigate('/');
|
navigate('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const menuExpansion = () => {
|
||||||
|
navigate('/MenuExpansion');
|
||||||
|
}
|
||||||
|
|
||||||
const setStarbucks = () => {
|
const setStarbucks = () => {
|
||||||
ReactSession.set("eatery", "Starbucks");
|
ReactSession.set("eatery", "Starbucks");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setChick = () => {
|
const setChick = () => {
|
||||||
ReactSession.set("eatery", "Chick-fil-a");
|
ReactSession.set("eatery", "Chick-fil-a");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setABP = () => {
|
const setABP = () => {
|
||||||
ReactSession.set("eatery", "Au Bon Pain");
|
ReactSession.set("eatery", "Au Bon Pain");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setMoma = () => {
|
const setMoma = () => {
|
||||||
ReactSession.set("eatery", "Modern Market");
|
ReactSession.set("eatery", "Modern Market");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setTaco = () => {
|
const setTaco = () => {
|
||||||
ReactSession.set("eatery", "Taco Bell");
|
ReactSession.set("eatery", "Taco Bell");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setDH = () => {
|
const setDH = () => {
|
||||||
ReactSession.set("eatery", "Dining Hall");
|
ReactSession.set("eatery", "Dining Hall");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setFlip = () => {
|
const setFlip = () => {
|
||||||
ReactSession.set("eatery", "Flip Kitchen");
|
ReactSession.set("eatery", "Flip Kitchen");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
const setSmash = () => {
|
const setSmash = () => {
|
||||||
ReactSession.set("eatery", "Smashburger");
|
ReactSession.set("eatery", "Smashburger");
|
||||||
|
menuExpansion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user