From b3b43e3068eff94e52fdaddd03a6af4c27a9461e Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 10 Nov 2023 03:31:23 +0600 Subject: [PATCH] Fix progress modal --- src/components/TeamProgress/MemberCustomProgressModal.tsx | 3 ++- src/components/UserProgress/UserCustomProgressModal.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/TeamProgress/MemberCustomProgressModal.tsx b/src/components/TeamProgress/MemberCustomProgressModal.tsx index e6bcf93ff..32eae1d80 100644 --- a/src/components/TeamProgress/MemberCustomProgressModal.tsx +++ b/src/components/TeamProgress/MemberCustomProgressModal.tsx @@ -25,6 +25,7 @@ import type { Node } from 'reactflow'; import { useKeydown } from '../../hooks/use-keydown'; import { useOutsideClick } from '../../hooks/use-outside-click'; import { MemberProgressModalHeader } from './MemberProgressModalHeader'; +import { X } from 'lucide-react'; export type ProgressMapProps = { member: TeamMember; @@ -284,7 +285,7 @@ export function MemberCustomProgressModal(props: ProgressMapProps) { }`} onClick={onClose} > - {'close'} + Close modal diff --git a/src/components/UserProgress/UserCustomProgressModal.tsx b/src/components/UserProgress/UserCustomProgressModal.tsx index f79fd6068..b907c0396 100644 --- a/src/components/UserProgress/UserCustomProgressModal.tsx +++ b/src/components/UserProgress/UserCustomProgressModal.tsx @@ -4,13 +4,13 @@ import { useKeydown } from '../../hooks/use-keydown'; import { httpGet } from '../../lib/http'; import type { ResourceType } from '../../lib/resource-progress'; import { topicSelectorAll } from '../../lib/resource-progress'; -import CloseIcon from '../../icons/close.svg'; import { deleteUrlParam, getUrlParams } from '../../lib/browser'; import { useAuth } from '../../hooks/use-auth'; import type { GetRoadmapResponse } from '../CustomRoadmap/CustomRoadmap'; import { ReadonlyEditor } from '../../../editor/readonly-editor'; import { ProgressLoadingError } from './ProgressLoadingError'; import { UserProgressModalHeader } from './UserProgressModalHeader'; +import { X } from 'lucide-react'; export type ProgressMapProps = { userId?: string; @@ -208,7 +208,7 @@ export function UserCustomProgressModal(props: ProgressMapProps) { className={`absolute right-2.5 top-3 ml-auto inline-flex items-center rounded-lg bg-gray-100 bg-transparent p-1.5 text-sm text-gray-400 hover:text-gray-900 lg:hidden`} onClick={onClose} > - {'close'} + Close modal