diff --git a/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx b/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx index 619dca9..ccfc01e 100644 --- a/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx +++ b/frontend/src/components/EisenhowerMatrix/Eisenhower.jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from "react"; +import { useState, useEffect } from "react"; import { FiAlertCircle, FiClock, FiXCircle, FiCheckCircle } from "react-icons/fi"; import { readTodoTasks } from "../../api/TaskApi"; import axiosInstance from "src/api/AxiosConfig"; diff --git a/frontend/src/components/ProfileUpdateComponent.jsx b/frontend/src/components/ProfileUpdateComponent.jsx index 74da41f..627ba9e 100644 --- a/frontend/src/components/ProfileUpdateComponent.jsx +++ b/frontend/src/components/ProfileUpdateComponent.jsx @@ -1,4 +1,4 @@ -import React, { useState, useRef } from "react"; +import { useState, useRef } from "react"; import { ApiUpdateUserProfile } from "../api/UserProfileApi"; function ProfileUpdateComponent() { @@ -15,7 +15,7 @@ function ProfileUpdateComponent() { } }; - const handleFileChange = e => { + const handleFileChange = (e) => { const selectedFile = e.target.files[0]; if (selectedFile) { setFile(selectedFile); @@ -66,7 +66,7 @@ function ProfileUpdateComponent() { placeholder="Enter your username" className="input w-full" value={username} - onChange={e => setUsername(e.target.value)} + onChange={(e) => setUsername(e.target.value)} /> @@ -78,7 +78,7 @@ function ProfileUpdateComponent() { placeholder="Enter your full name" className="input w-full" value={fullName} - onChange={e => setFullName(e.target.value)} + onChange={(e) => setFullName(e.target.value)} /> @@ -89,7 +89,7 @@ function ProfileUpdateComponent() { placeholder="Tell us about yourself" className="textarea w-full h-32" value={about} - onChange={e => setAbout(e.target.value)} + onChange={(e) => setAbout(e.target.value)} /> diff --git a/frontend/src/components/authentication/SignUpPage.jsx b/frontend/src/components/authentication/SignUpPage.jsx index 6bcc8dc..0139867 100644 --- a/frontend/src/components/authentication/SignUpPage.jsx +++ b/frontend/src/components/authentication/SignUpPage.jsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { useNavigate } from "react-router-dom"; import axiosapi from "../../api/AuthenticationApi"; import { useCallback } from "react"; @@ -6,16 +6,13 @@ import Particles from "react-tsparticles"; import { loadFull } from "tsparticles"; import { FcGoogle } from "react-icons/fc"; import { useGoogleLogin } from "@react-oauth/google"; - +import { useAuth } from "src/hooks/AuthHooks"; function Copyright(props) { return (
{"Copyright © "} - + TurTask {" "} {new Date().getFullYear()} @@ -26,6 +23,7 @@ function Copyright(props) { export default function SignUp() { const Navigate = useNavigate(); + const { setIsAuthenticated } = useAuth; const [formData, setFormData] = useState({ email: "", @@ -91,10 +89,7 @@ export default function SignUp() { }); return ( -
+
{/* Particles Container */}
*

- +
{/* Username Input */}
@@ -225,17 +214,13 @@ export default function SignUp() {
OR
{/* Login with Google Button */} - {/* Already have an account? */}
- - Already have an account? - + Already have an account?
diff --git a/frontend/src/components/profilePage.jsx b/frontend/src/components/profilePage.jsx index 4b0d0b4..35c260e 100644 --- a/frontend/src/components/profilePage.jsx +++ b/frontend/src/components/profilePage.jsx @@ -1,4 +1,3 @@ -import * as React from "react"; import ProfileUpdateComponent from "./ProfileUpdateComponent"; function ProfileUpdatePage() { @@ -47,7 +46,7 @@ function ProfileUpdatePage() {
3213/321312321 points
- +
@@ -75,10 +74,10 @@ function ProfileUpdatePage() {
-
-

About me

-
-