From 08daa55569424b0c98011e8aa97d6c2743e8478e Mon Sep 17 00:00:00 2001
From: Julien Oculi
Date: Fri, 16 May 2025 12:25:46 +0200
Subject: [PATCH] refactor: fix lint warnings
---
components/AutoGrid.tsx | 4 ++--
routes/index.tsx | 20 ++++++++------------
2 files changed, 10 insertions(+), 14 deletions(-)
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