From 94ad20fc0480d3eda68927c832158dd1db15150c Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 26 Jul 2023 19:19:57 +0100 Subject: [PATCH] Remove progress hint --- .../TeamProgress/MemberProgressModal.tsx | 8 --- src/components/TeamProgress/ProgressHint.tsx | 71 ------------------- 2 files changed, 79 deletions(-) delete mode 100644 src/components/TeamProgress/ProgressHint.tsx diff --git a/src/components/TeamProgress/MemberProgressModal.tsx b/src/components/TeamProgress/MemberProgressModal.tsx index a3e791025..23fb4f0ed 100644 --- a/src/components/TeamProgress/MemberProgressModal.tsx +++ b/src/components/TeamProgress/MemberProgressModal.tsx @@ -16,7 +16,6 @@ import CloseIcon from '../../icons/close.svg'; import { useToast } from '../../hooks/use-toast'; import { useAuth } from '../../hooks/use-auth'; import { pageProgressMessage } from '../../stores/page'; -import { ProgressHint } from './ProgressHint'; export type ProgressMapProps = { member: TeamMember; @@ -308,13 +307,6 @@ export function MemberProgressModal(props: ProgressMapProps) { )} - {showProgressHint && ( - { - setShowProgressHint(false); - }} - /> - )}
{!isCurrentUser && (
diff --git a/src/components/TeamProgress/ProgressHint.tsx b/src/components/TeamProgress/ProgressHint.tsx deleted file mode 100644 index 4128d8748..000000000 --- a/src/components/TeamProgress/ProgressHint.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { useRef } from 'preact/hooks'; -import { useOutsideClick } from '../../hooks/use-outside-click'; -import { useKeydown } from '../../hooks/use-keydown'; -import { CloseIcon } from '../ReactIcons/CloseIcon'; - -type ProgressHintProps = { - onClose: () => void; -}; - -export function ProgressHint(props: ProgressHintProps) { - const { onClose } = props; - const containerEl = useRef(null); - - useOutsideClick(containerEl, onClose); - useKeydown('Escape', () => { - onClose(); - }); - - return ( -
-
-
- - Update Progress - -

Use the keyboard shortcuts listed below.

- -
    -
  • - - Right Mouse Click - {' '} - to mark as Done. -
  • -
  • - - Shift - {' '} - +{' '} - - Click - {' '} - to mark as in progress. -
  • -
  • - - Option / Alt - {' '} - +{' '} - - Click - {' '} - to mark as skipped. -
  • -
- -
-
-
- ); -}