prettier config
This commit is contained in:
@ -22,7 +22,7 @@ const Form = () => {
|
||||
const [data, setData] = useState({
|
||||
email: "",
|
||||
phone: "",
|
||||
comment: "",
|
||||
comment: ""
|
||||
});
|
||||
const [isFetching, setIsFetching] = useState(false);
|
||||
|
||||
@ -40,7 +40,7 @@ const Form = () => {
|
||||
: () => {
|
||||
setStatus(null);
|
||||
navigate(`/candidate/${urlParams.id}`);
|
||||
},
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@ -55,7 +55,7 @@ const Form = () => {
|
||||
|
||||
setData((prev) => ({
|
||||
...prev,
|
||||
[id]: value,
|
||||
[id]: value
|
||||
}));
|
||||
};
|
||||
|
||||
@ -73,8 +73,8 @@ const Form = () => {
|
||||
method: "POST",
|
||||
params: {
|
||||
profile_id: urlParams.id,
|
||||
...data,
|
||||
},
|
||||
...data
|
||||
}
|
||||
}).then((res) => {
|
||||
setStatus(res);
|
||||
setIsFetching(false);
|
||||
|
Reference in New Issue
Block a user