1
0
Fork 0

Updated card buttons, and added Danish translation

Tested danish translation, it works :O
This commit is contained in:
Techognito 2025-08-26 11:14:50 +02:00
parent eb606572b0
commit 695dd24cc7
9 changed files with 263 additions and 46 deletions

View file

@ -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 (