From 8adb6757c88a13edcbc355d3a26a47af8c5fbc10 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 10 Jun 2022 19:23:24 +0530 Subject: [PATCH] updated gallery selection bar icons --- .../pages/gallery/SelectedFileOptions.tsx | 166 +++++++++--------- 1 file changed, 85 insertions(+), 81 deletions(-) diff --git a/src/components/pages/gallery/SelectedFileOptions.tsx b/src/components/pages/gallery/SelectedFileOptions.tsx index 9d464a55f..ed8ba53cf 100644 --- a/src/components/pages/gallery/SelectedFileOptions.tsx +++ b/src/components/pages/gallery/SelectedFileOptions.tsx @@ -1,30 +1,30 @@ import React, { useContext, useEffect, useState } from 'react'; import { SetCollectionSelectorAttributes } from './CollectionSelector'; -import DeleteIcon from 'components/icons/DeleteIcon'; -import CloseIcon from '@mui/icons-material/Close'; -import AddIcon from 'components/icons/AddIcon'; -import { FluidContainer, IconButton } from 'components/Container'; +import { FluidContainer } from 'components/Container'; import constants from 'utils/strings/constants'; -import Archive from 'components/icons/Archive'; -import MoveIcon from 'components/icons/MoveIcon'; import { COLLECTION_OPS_TYPE } from 'utils/collection'; import { ALL_SECTION, ARCHIVE_SECTION, TRASH_SECTION, } from 'constants/collection'; -import UnArchive from 'components/icons/UnArchive'; import { Collection } from 'types/collection'; -import RemoveIcon from 'components/icons/RemoveIcon'; -import RestoreIcon from 'components/icons/RestoreIcon'; -import ClockIcon from 'components/icons/ClockIcon'; import { getData, LS_KEYS } from 'utils/storage/localStorage'; import { FIX_CREATION_TIME_VISIBLE_TO_USER_IDS } from 'constants/user'; -import DownloadIcon from 'components/icons/DownloadIcon'; import { User } from 'types/user'; -import { IconWithMessage } from 'components/IconWithMessage'; import { SelectionBar } from '../../Navbar/SelectionBar'; import { AppContext } from 'pages/_app'; +import { IconButton, Stack, Tooltip } from '@mui/material'; +import CloseIcon from '@mui/icons-material/Close'; +import RestoreIcon from '@mui/icons-material/Restore'; +import AddIcon from 'components/icons/AddIcon'; +import DeleteIcon from '@mui/icons-material/Delete'; +import ClockIcon from '@mui/icons-material/AccessTime'; +import DownloadIcon from '@mui/icons-material/Download'; +import UnArchiveIcon from '@mui/icons-material/Visibility'; +import ArchiveIcon from '@mui/icons-material/VisibilityOff'; +import MoveIcon from '@mui/icons-material/ArrowForward'; +import RemoveIcon from '@mui/icons-material/RemoveCircleOutline'; interface Props { addToCollectionHelper: (collection: Collection) => void; @@ -142,78 +142,82 @@ const SelectedFileOptions = ({ {count} {constants.SELECTED} - {activeCollection === TRASH_SECTION ? ( - <> - - - - - - - - - - - - ) : ( - <> - {showFixCreationTime && ( - - - + + {activeCollection === TRASH_SECTION ? ( + <> + + + - - )} - - - - - - - - - - - {activeCollection === ARCHIVE_SECTION && ( - - - + + + + - - )} - {activeCollection === ALL_SECTION && ( - - - - - - )} - - {activeCollection !== ALL_SECTION && - activeCollection !== ARCHIVE_SECTION && - !isFavoriteCollection && ( - <> - - - - - - - - - - - - + + + ) : ( + <> + {showFixCreationTime && ( + + + + + )} - - - - - - - )} + + + + + + + + + + + {activeCollection === ARCHIVE_SECTION && ( + + + + + + )} + {activeCollection === ALL_SECTION && ( + + + + + + )} + + {activeCollection !== ALL_SECTION && + activeCollection !== ARCHIVE_SECTION && + !isFavoriteCollection && ( + <> + + + + + + + + + + + + + )} + + + + + + + )} + ); };