add lint js
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React, {FormEvent, useState} from "react"
|
||||
import useAuthUser from "../../hooks/AuthUser"
|
||||
import PageLayout from "../../components/PageLayout"
|
||||
import Card from "../../components/Card";
|
||||
import Field from "../../components/Field";
|
||||
import useAxiosTools from "../../hooks/AxiosTools";
|
||||
import Card from "../../components/Card"
|
||||
import Field from "../../components/Field"
|
||||
import useAxiosTools from "../../hooks/AxiosTools"
|
||||
|
||||
const Profile = () => {
|
||||
|
||||
@@ -18,8 +18,8 @@ const Profile = () => {
|
||||
try {
|
||||
const res = await axiosPost(`/api/locations`, {latitude, longitude})
|
||||
setAuthUser(res.data)
|
||||
} catch (e) {
|
||||
errorCatch(e)
|
||||
} catch (error) {
|
||||
errorCatch(error)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ const Profile = () => {
|
||||
Longitude
|
||||
</Field>
|
||||
<div className="self-end">
|
||||
<button type="submit" className="btn-primary w-24 h-10">Valider</button>
|
||||
<button type="submit" className="btn-primary h-10 w-24">Valider</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>}
|
||||
|
||||
Reference in New Issue
Block a user