From ea0f114d64593974a9a416c2b8dd40421188d4f7 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 3 Feb 2023 13:40:47 +0800 Subject: [PATCH] Linting clean up --- .../components/templates/article/HighlightNoteModal.tsx | 7 +------ packages/web/lib/highlights/useSelection.tsx | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/web/components/templates/article/HighlightNoteModal.tsx b/packages/web/components/templates/article/HighlightNoteModal.tsx index 9c36fecf7..e8a8ecf83 100644 --- a/packages/web/components/templates/article/HighlightNoteModal.tsx +++ b/packages/web/components/templates/article/HighlightNoteModal.tsx @@ -5,11 +5,7 @@ import { ModalTitleBar, ModalButtonBar, } from './../../elements/ModalPrimitives' -import { Box, HStack, SpanBox, VStack } from '../../elements/LayoutPrimitives' -import { Button } from '../../elements/Button' -import { StyledText } from '../../elements/StyledText' -import { CommentIcon } from '../../elements/images/CommentIcon' -import { theme } from '../../tokens/stitches.config' +import { VStack } from '../../elements/LayoutPrimitives' import { Highlight } from '../../../lib/networking/fragments/highlightFragment' import { useCallback, useState } from 'react' import { StyledTextArea } from '../../elements/StyledTextArea' @@ -17,7 +13,6 @@ import { updateHighlightMutation } from '../../../lib/networking/mutations/updat import { readableUpdatedAtMessage } from './../../../lib/dateFormatting' import { useConfirmListener } from '../../../lib/keyboardShortcuts/useKeyboardShortcuts' import { showErrorToast } from '../../../lib/toastHelpers' -import { CrossIcon } from '../../elements/images/CrossIcon' type HighlightNoteModalProps = { author: string diff --git a/packages/web/lib/highlights/useSelection.tsx b/packages/web/lib/highlights/useSelection.tsx index bc9389341..45b4deb97 100644 --- a/packages/web/lib/highlights/useSelection.tsx +++ b/packages/web/lib/highlights/useSelection.tsx @@ -27,7 +27,7 @@ export function useSelection( const handleFinishTouch = useCallback( async (mouseEvent) => { - var wasDragEvent = false + let wasDragEvent = false const tapAttributes = { tapX: mouseEvent.screenX, tapY: mouseEvent.screenY,