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

@@ -16,6 +16,7 @@ import {red, green, lightBlue, lightGreen} from '@mui/material/colors';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import image from "./images/main_background.jpg"
import { ReactSession } from 'react-client-session';
import { CardMedia, CardContent } from '@mui/material';
const theme = createTheme({
palette: {
@@ -51,8 +52,6 @@ const [data,setData] = useState({
const submitHandler = e => {
e.preventDefault();
console.log(data);
console.log(net_id[0])
login();
}
@@ -96,7 +95,19 @@ const login = () => {
}}
>
<Typography component="h1" variant="h5">Log In</Typography>
<div className='logbox2'>
<Card sx={{ width:300, height:100 }}>
<CardMedia
component='Box'
image={ require("./images/logo.jpg")}
title="Logo"
sx={{ width: 300, height:100}}
alt="logo"
/>
</Card>
</div>
<form className='formbox' onSubmit={submitHandler}>
<TextField