add lint js
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, {Dispatch, FC, FormEvent, SetStateAction, useState} from "react"
|
||||
import useAxiosTools from "../../hooks/AxiosTools";
|
||||
import Field from "../Field";
|
||||
import Card from "../Card";
|
||||
import useAxiosTools from "../../hooks/AxiosTools"
|
||||
import Field from "../Field"
|
||||
import Card from "../Card"
|
||||
|
||||
const AddRainfall: FC<AddRainfallProps> = ({reload}) => {
|
||||
|
||||
@@ -23,12 +23,12 @@ const AddRainfall: FC<AddRainfallProps> = ({reload}) => {
|
||||
}
|
||||
}
|
||||
|
||||
return <Card className="min-w-[300px] overflow-hidden self-start w-full md:w-auto">
|
||||
<h2 className="text-center bg-blue-500 text-white -mx-2 -mt-1 text-lg font-bold px-2 py-1">
|
||||
Ajout d'une mesure
|
||||
return <Card className="w-full min-w-[300px] self-start overflow-hidden md:w-auto">
|
||||
<h2 className="-mx-2 -mt-1 bg-blue-500 px-2 py-1 text-center text-lg font-bold text-white">
|
||||
Ajout d'une mesure
|
||||
</h2>
|
||||
{errorLabel()}
|
||||
<form onSubmit={handleSubmit} className="p-2 flex flex-col gap-2">
|
||||
<form onSubmit={handleSubmit} className="flex flex-col gap-2 p-2">
|
||||
<Field type="date"
|
||||
name="date"
|
||||
value={data.date}
|
||||
|
||||
Reference in New Issue
Block a user