fix: clean import
This commit is contained in:
parent
8824a547bc
commit
c3ff0dc95e
@ -1,4 +1,4 @@
|
||||
import {NavLink, Outlet} from "react-router-dom";
|
||||
import {Outlet} from "react-router-dom";
|
||||
import './AdminRoot.css'
|
||||
import {LoadingProvider} from "../../hooks/useLoading.jsx";
|
||||
import {MemberList} from "./MemberList.jsx";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {useNavigate, useParams} from "react-router-dom";
|
||||
import {LoadingProvider, useLoadingSwitcher} from "../../hooks/useLoading.jsx";
|
||||
import {useFetch, useFetchPut} from "../../hooks/useFetch.js";
|
||||
import {useFetch} from "../../hooks/useFetch.js";
|
||||
import {AxiosError} from "../../components/AxiosError.jsx";
|
||||
import {ClubSelect} from "../../components/ClubSelect.jsx";
|
||||
import {useEffect, useState} from "react";
|
||||
@ -84,7 +84,7 @@ function InformationForm({data}) {
|
||||
'Accept': '*/*',
|
||||
'Content-Type': 'multipart/form-data',
|
||||
}
|
||||
}).then(data => {
|
||||
}).then(_ => {
|
||||
toast.success('Profile mis à jours avec succès 🎉');
|
||||
}).catch(e => {
|
||||
console.log(e.response)
|
||||
@ -176,7 +176,7 @@ function PremForm({userData}) {
|
||||
'Accept': '*/*',
|
||||
'Content-Type': 'form-data',
|
||||
}
|
||||
}).then(data => {
|
||||
}).then(_ => {
|
||||
toast.success('Permission mise à jours avec succès 🎉');
|
||||
}).catch(e => {
|
||||
console.log(e.response)
|
||||
@ -342,8 +342,7 @@ function BirthDayField({inti_date, inti_category}) {
|
||||
setCanUpdate(b)
|
||||
}, [date, category])
|
||||
|
||||
const updateCat = (e) => {
|
||||
console.log(date)
|
||||
const updateCat = _ => {
|
||||
setCategory(getCategoryFormBirthDate(new Date(date), new Date('2023-09-01')))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user