From a3fc5d7a1aea5be47f69cbc64be68f8d1b71ced0 Mon Sep 17 00:00:00 2001 From: Ananddubey01 Date: Wed, 15 Feb 2023 20:25:04 +0530 Subject: [PATCH] Moved toolTip logic inside the leave component --- .../QuickOptions/DownloadOption.tsx | 16 +++++++++---- .../QuickOptions/ShareOption.tsx | 17 +++++++++++--- .../CollectionOptions/QuickOptions/index.tsx | 23 ++----------------- thirdparty/tesseract | 1 + 4 files changed, 29 insertions(+), 28 deletions(-) create mode 160000 thirdparty/tesseract diff --git a/src/components/Collections/CollectionOptions/QuickOptions/DownloadOption.tsx b/src/components/Collections/CollectionOptions/QuickOptions/DownloadOption.tsx index 359e88f40..714d1f584 100644 --- a/src/components/Collections/CollectionOptions/QuickOptions/DownloadOption.tsx +++ b/src/components/Collections/CollectionOptions/QuickOptions/DownloadOption.tsx @@ -3,21 +3,29 @@ import React from 'react'; import FileDownloadOutlinedIcon from '@mui/icons-material/FileDownloadOutlined'; import { IconButton, Tooltip } from '@mui/material'; import constants from 'utils/strings/constants'; - +import { CollectionSummaryType } from 'constants/collection'; interface Iprops { handleCollectionAction: ( action: CollectionActions, loader?: boolean ) => (...args: any[]) => Promise; - tooltipTitle?: String; + collectionSummaryType: CollectionSummaryType; } export function DownloadOption({ handleCollectionAction, - tooltipTitle = constants.DOWNLOAD_COLLECTION, + collectionSummaryType, }: Iprops) { return ( - + (...args: any[]) => Promise; - tooltipTitle?: string; + collectionSummaryType: CollectionSummaryType; } export function ShareOption({ handleCollectionAction, - tooltipTitle = constants.SHARE_COLLECTION, + collectionSummaryType, }: Iprops) { return ( - + )} {showShareQuickOption(collectionSummaryType) && ( )} diff --git a/thirdparty/tesseract b/thirdparty/tesseract new file mode 160000 index 000000000..73b42f8cb --- /dev/null +++ b/thirdparty/tesseract @@ -0,0 +1 @@ +Subproject commit 73b42f8cb0bc36aee08a837b4ea70c919edab4cc