From 8a50c8dcd9fadfbc42ac6ecf16ef30947bf14496 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 28 Aug 2023 13:50:38 +0530 Subject: [PATCH] remove club by capture time option --- .../pages/dedupe/SelectedFileOptions.tsx | 38 +------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/apps/photos/src/components/pages/dedupe/SelectedFileOptions.tsx b/apps/photos/src/components/pages/dedupe/SelectedFileOptions.tsx index b7b2e22bc..068e06153 100644 --- a/apps/photos/src/components/pages/dedupe/SelectedFileOptions.tsx +++ b/apps/photos/src/components/pages/dedupe/SelectedFileOptions.tsx @@ -1,8 +1,7 @@ import { FluidContainer } from 'components/Container'; import { SelectionBar } from '../../Navbar/SelectionBar'; -import React, { useContext } from 'react'; -import { Box, IconButton, styled, Tooltip } from '@mui/material'; -import { DeduplicateContext } from 'pages/deduplicate'; +import { useContext } from 'react'; +import { Box, IconButton, Tooltip } from '@mui/material'; import { AppContext } from 'pages/_app'; import CloseIcon from '@mui/icons-material/Close'; import BackButton from '@mui/icons-material/ArrowBackOutlined'; @@ -11,20 +10,6 @@ import { getTrashFilesMessage } from 'utils/ui'; import { t } from 'i18next'; import { formatNumber } from 'utils/number/format'; -const VerticalLine = styled('div')` - position: absolute; - width: 1px; - top: 0; - bottom: 0; - background: #303030; -`; - -const CheckboxText = styled('div')` - margin-left: 0.5em; - font-size: 16px; - margin-right: 0.8em; -`; - interface IProps { deleteFileHelper: () => void; close: () => void; @@ -38,7 +23,6 @@ export default function DeduplicateOptions({ count, clearSelection, }: IProps) { - const deduplicateContext = useContext(DeduplicateContext); const { setDialogMessage } = useContext(AppContext); const trashHandler = () => @@ -60,24 +44,6 @@ export default function DeduplicateOptions({ {formatNumber(count)} {t('SELECTED')} - { - deduplicateContext.setClubSameTimeFilesOnly( - !deduplicateContext.clubSameTimeFilesOnly - ); - }}> - {t('CLUB_BY_CAPTURE_TIME')} -
- -