diff --git a/components/AutoGrid.tsx b/components/AutoGrid.tsx index fa7f789..a4eddd9 100644 --- a/components/AutoGrid.tsx +++ b/components/AutoGrid.tsx @@ -1,11 +1,11 @@ -import { JSX } from 'preact' +import { ComponentChildren, JSX } from 'preact' type Units = 'rem' | '%' | 'px' export function AutoGrid( { columnWidth, children, style }: { columnWidth: `${number}${Units}` - children: JSX.Element | JSX.Element[] + children: ComponentChildren style?: JSX.CSSProperties }, ) { diff --git a/routes/index.tsx b/routes/index.tsx index c4c65ca..cdc8d10 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -23,8 +23,8 @@ export default function Home() { Voir plus @@ -36,19 +36,15 @@ export default function Home() { accompagnes dans vos projets, grâce à son parc de machine...

- <> - {machineMock.slice(0, 4).map(MachineCard)} - Réserver - + {machineMock.slice(0, 4).map(MachineCard)} + Réserver

Nos projets

- <> - {projectMock.slice(0, 4).map(ProjectCard)} - Participer - + {projectMock.slice(0, 4).map(ProjectCard)} + Participer
@@ -56,8 +52,8 @@ export default function Home() { Nous découvrir