Updated card buttons, and added Danish translation
Tested danish translation, it works :O
This commit is contained in:
parent
eb606572b0
commit
695dd24cc7
9 changed files with 263 additions and 46 deletions
|
|
@ -12,44 +12,6 @@ import Grid from '@mui/material/Grid';
|
|||
import VehicleCard from "./modules/VehicleCards";
|
||||
import YourVehicleList from "./modules/YourVehicles";
|
||||
|
||||
//const response = await fetch("/GarageApp/api/vehicles");
|
||||
//console.log(response)
|
||||
//const vehicles = await response.json();
|
||||
|
||||
//console.log(vehicles)
|
||||
// <Box>
|
||||
// <Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
||||
// {vehicles.map((vehicle, index) => (
|
||||
// <Grid key={index} size={{ xs: 2, sm: 4, md: 4 }}>
|
||||
// <VehicleCard nickname={vehicle.nickname} makemodel={vehicle.make + " " + vehicle.model} registration={vehicle.registration}/>
|
||||
// </Grid>
|
||||
// ))}
|
||||
// </Grid>
|
||||
// </Box>
|
||||
//
|
||||
//
|
||||
// {vehicles.map((vehicle, index) => (
|
||||
// <VehicleCard nickname={vehicle.nickname} makemodel={vehicle.make + " " + vehicle.model} registration={vehicle.registration}/>
|
||||
// ))}
|
||||
//
|
||||
// <Button variant="contained">to become Add Vehicle button</Button>
|
||||
// <h1>{t ('yourvehicles')}</h1>
|
||||
// <Box>
|
||||
// <Grid container
|
||||
// spacing={{ xs: 1, md: 3 }}
|
||||
// columns={{ xs: 2, sm: 8, md: 12 }}
|
||||
// sx={{
|
||||
// justifyContent: "grow",
|
||||
// alignItems: "stretch"
|
||||
// }}>
|
||||
// {vehicles.map((vehicle, index) => (
|
||||
// <Grid key={index} size={{ xs: 2, sm: 4, md: 4 }} justifyContent="center" alignItems="center">
|
||||
// <VehicleCard nickname={vehicle.nickname} makemodel={vehicle.make + " " + vehicle.model} registration={vehicle.registration}/>
|
||||
// </Grid>
|
||||
// ))}
|
||||
// </Grid>
|
||||
// </Box>
|
||||
//
|
||||
export function App() {
|
||||
const { t, i18n } = useTranslation();
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue