Minor changes

This commit is contained in:
Atharva Ombase
2025-04-19 01:28:06 +05:30
parent 920c793fa6
commit d59e8c789c
2 changed files with 3 additions and 9 deletions
+2 -5
View File
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import { FiEye, FiEyeOff } from "react-icons/fi";
import { Link } from "react-router-dom";
import toast, { Toaster } from "react-hot-toast";
@@ -6,7 +6,6 @@ import toast, { Toaster } from "react-hot-toast";
// const API_BASE_URL = process.env.REACT_APP_API_URL;
const API_BASE_URL = import.meta.env.VITE_API_URL;
const SignUp = () => {
const [formData, setFormData] = useState({
firstname: "",
@@ -59,7 +58,7 @@ const SignUp = () => {
toast.error(data.message || "Signup failed.", { id: toastId });
}
} catch (error) {
toast.error("An error occurred. Please try again.");
toast.error("An error occurred. Please try again.", error);
} finally {
setLoading(false);
}
@@ -171,8 +170,6 @@ const SignUp = () => {
export default SignUp;
// // eslint-disable-next-line no-unused-vars
// import React, { useState } from "react";
// import { FiEye, FiEyeOff } from "react-icons/fi";
+1 -4
View File
@@ -1,11 +1,8 @@
import React, { useState } from "react";
// Adjust the import for FileUpload to the correct location:
import { useState } from "react";
import FileUploadModal from "../../components/FileUploadModal";
const UploadFile = () => {
// Control modal visibility with state
const [isModalOpen, setIsModalOpen] = useState(false);
// Dummy callback or proper function if necessary
const fetchFiles = () => {
console.log("Upload succeeded, fetch or update file list here.");
};