From 561ec26877d3c4c9441e20121ca938e9ba104095 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Tue, 25 Jul 2023 18:23:05 +0600 Subject: [PATCH] chore: show current user progress first --- src/components/TeamProgress/MemberProgressItem.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/TeamProgress/MemberProgressItem.tsx b/src/components/TeamProgress/MemberProgressItem.tsx index 287e64039..4c65f7703 100644 --- a/src/components/TeamProgress/MemberProgressItem.tsx +++ b/src/components/TeamProgress/MemberProgressItem.tsx @@ -1,7 +1,6 @@ import type { TeamMember } from './TeamProgressPage'; import { useState } from 'preact/hooks'; import { MemberProgressModal } from './MemberProgressModal'; -import { useAuth } from '../../hooks/use-auth'; type MemberProgressItemProps = { teamId: string; @@ -9,8 +8,6 @@ type MemberProgressItemProps = { }; export function MemberProgressItem(props: MemberProgressItemProps) { const { member, teamId } = props; - const user = useAuth(); - const isCurrentUser = user?.email === member.email; const memberProgress = member?.progress?.sort((a, b) => { return b.done - a.done; @@ -34,7 +31,7 @@ export function MemberProgressItem(props: MemberProgressItemProps) { )}