|
@@ -1,6 +1,9 @@
|
|
|
import { useState, useEffect } from 'react'
|
|
import { useState, useEffect } from 'react'
|
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
|
|
+import { Container, Typography, Box } from '@mui/material';
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
function App() {
|
|
function App() {
|
|
|
|
|
|
|
|
const [apiResponse, setApiResponse] = useState({});
|
|
const [apiResponse, setApiResponse] = useState({});
|
|
@@ -15,15 +18,17 @@ function App() {
|
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <>
|
|
|
|
|
- <h1>OpenTTD Admin Console App</h1>
|
|
|
|
|
- <div className="card">
|
|
|
|
|
- <p>
|
|
|
|
|
|
|
+ <Container maxWidth="sm">
|
|
|
|
|
+ <Box sx={{my: 4}}>
|
|
|
|
|
+ <Typography variant='h2' component='h1' sx={{mb:2}}>
|
|
|
|
|
+ OpenTTD Admin Console App
|
|
|
|
|
+ </Typography>
|
|
|
|
|
+ <Typography>
|
|
|
Data retrieved from BackEnd:
|
|
Data retrieved from BackEnd:
|
|
|
- </p>
|
|
|
|
|
|
|
+ </Typography>
|
|
|
<pre>{JSON.stringify(apiResponse)}</pre>
|
|
<pre>{JSON.stringify(apiResponse)}</pre>
|
|
|
- </div>
|
|
|
|
|
- </>
|
|
|
|
|
|
|
+ </Box>
|
|
|
|
|
+ </Container>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|