diff --git a/src/app/api/user.ts b/src/app/api/user.ts index 6dada20..677e4f0 100644 --- a/src/app/api/user.ts +++ b/src/app/api/user.ts @@ -13,7 +13,7 @@ export interface UserOrgDetails { [key: string]: { bookmark: string; role: string; - archive: string; + archeive: string; }; } diff --git a/src/app/components/timeRangeSwitch/index.tsx b/src/app/components/timeRangeSwitch/index.tsx index e32b95c..4a7de8c 100644 --- a/src/app/components/timeRangeSwitch/index.tsx +++ b/src/app/components/timeRangeSwitch/index.tsx @@ -14,7 +14,6 @@ const TimeRangeSwitch: React.FC = ({ weekly, setWeekly }) => { // const dispatch = useDispatch(); // const isWeekly = useSelector((state: timeRangeModel) => state.isWeekly.value); useEffect(()=>{ - console.log(weekly) },[weekly, setWeekly]) return (
diff --git a/src/features/project-members /components/MemberCard.tsx b/src/features/project-members /components/MemberCard.tsx index e88d6e2..3f22105 100644 --- a/src/features/project-members /components/MemberCard.tsx +++ b/src/features/project-members /components/MemberCard.tsx @@ -47,7 +47,7 @@ const MemberCard = ({ const func= async()=>{ - console.log({[name]:new_role}) + const res= await changeProjectMembersStatus(token,projectName ,spaceName,{[name]:new_role}) projectMembers[name]=new_role setProjectMembers(projectMembers) diff --git a/src/features/workspace-members /components/BackNavigation.tsx b/src/features/workspace-members /components/BackNavigation.tsx index fee5516..a5c8c34 100644 --- a/src/features/workspace-members /components/BackNavigation.tsx +++ b/src/features/workspace-members /components/BackNavigation.tsx @@ -1,9 +1,7 @@ import { useNavigate } from "react-router-dom"; const BackNavigation = () => { - // const clickBack = () => { - // console.log('Back button clicked'); - // }; + const navigate= useNavigate() return (
diff --git a/src/features/workspace-members /components/MemberCard.tsx b/src/features/workspace-members /components/MemberCard.tsx index fe4a561..c7b07c2 100644 --- a/src/features/workspace-members /components/MemberCard.tsx +++ b/src/features/workspace-members /components/MemberCard.tsx @@ -42,7 +42,7 @@ const MemberCard = ({ const func= async()=>{ - console.log({[name]:new_role}) + const res= await changeOrgMembersStatus(token, spaceName,{[name]:new_role}) orgMembers[name]=new_role setOrgMembers(orgMembers) diff --git a/src/features/workspace-view/index.tsx b/src/features/workspace-view/index.tsx index 7d3b662..d5ebe0e 100644 --- a/src/features/workspace-view/index.tsx +++ b/src/features/workspace-view/index.tsx @@ -63,11 +63,12 @@ const WorkspaceView = () => { return [key, value]; }) .map(([orgName, details]) => { + return ( { const status: { [key: string]: boolean } = { [workspaceName]: (!archeive), }; - console.log(status) + + const res = await setOrgArcheiveStatus(token, status); - console.log(res) + + const orgs = userContext?.userOrgs; if (orgs?.userOrgs.hasOwnProperty(workspaceName)) { - orgs.userOrgs[workspaceName].archive = (!archeive).toString(); + orgs.userOrgs[workspaceName].archeive= (!archeive).toString(); userContext?.setUserOrgs(orgs); } }; @@ -155,6 +157,7 @@ const WorkspaceCard = (props: workspaceCardProps) => { } }; useEffect(() => { + console.log(archeive) workSpaceData(); }, [ userContext?.setUserOrgs ]); diff --git a/src/features/workspace/components/projectCardContainer/index.tsx b/src/features/workspace/components/projectCardContainer/index.tsx index 2cb6c61..310c521 100644 --- a/src/features/workspace/components/projectCardContainer/index.tsx +++ b/src/features/workspace/components/projectCardContainer/index.tsx @@ -25,7 +25,6 @@ const ProjectCardCont: React.FC = ({ const searchValue = useSelector((state: any) => state.searchKeyword.value); useEffect(() => { - console.log(orgProjects); }, [weekly, searchValue]); return (