diff --git a/src/components/profile/Profile.js b/src/components/profile/Profile.js
index ae35fd7..0e4551d 100644
--- a/src/components/profile/Profile.js
+++ b/src/components/profile/Profile.js
@@ -1,12 +1,14 @@
import { React } from "react"
import { useState, useEffect } from "react";
+import { useHistory } from "react-router-dom";
import { ProfileForm } from "./ProfileForm";
export const Profile = () => {
const [Users, fetchUsers] = useState([])
const [currentuser, setcurrentuser] = useState(localStorage.getItem("graphicsbaytracker_customer"))
const [currentUsertrackedcards, setcurrentUsertrackedcards] = useState([])
- const [formactive, setformstate] = useState(false)
+ const history = useHistory()
+
useEffect(
() => {
@@ -32,37 +34,7 @@ const showprofileinfo = () => {
return (
{founduser?.name}
{founduser?.email}
)
}
-const toggleForm = () => {
- setformstate(true)
- formactive === true ? :
-}
-
- useEffect(() => {
- Users.filter(
- ({
- id,
- name,
- email
- }) => {
- if (Users.id === parseInt(currentuser))
- return (
-
- )
- }
- )
- }
- )
const removetrackedcard = (gpudataobj) => {
@@ -84,7 +56,7 @@ const toggleForm = () => {
My Tracked Cards
{showprofileinfo()}
-