feat:Fixed all the UI Pages

This commit is contained in:
2025-03-26 21:31:14 +05:30
parent aba9651c43
commit b961ef8fd3
27 changed files with 232 additions and 125 deletions
@@ -30,7 +30,7 @@ const AddCrop = ({ farmId }) => {
if (image) {
formData.append("image", image);
}
console.log(formData);
try {
const response = await createCrop(formData);
// const response = await fetch(`http://localhost:8000/api/v1/crop`, {
@@ -42,7 +42,7 @@ const AddCrop = ({ farmId }) => {
// throw new Error("Failed to create crop");
// }
console.log(response);
setSuccess("Crop created successfully!");
// Reset form fields
setName("");