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. -
  • -
- -
-
-
- ); -}