π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos] Use the Figma icon in the album search field
AswinAsok91e1115e70af
diff --git a/web/apps/photos/src/components/CollectionDialog/Primitives.tsx b/web/apps/photos/src/components/CollectionDialog/Primitives.tsxindex 01445fb849..c7a5c57758 100644--- a/web/apps/photos/src/components/CollectionDialog/Primitives.tsx+++ b/web/apps/photos/src/components/CollectionDialog/Primitives.tsx@@ -1,23 +1,17 @@+import { Search01Icon } from "@hugeicons/core-free-icons";+import { HugeiconsIcon } from "@hugeicons/react";import CloseIcon from "@mui/icons-material/Close";-import SearchIcon from "@mui/icons-material/Search";import { InputBase, Stack, type SxProps, type Theme } from "@mui/material";import { isSxArray } from "ente-base/components/utils/sx";import { t } from "i18next";import React, { useRef } from "react";export const CollectionDialogSearchField: React.FC<{- icon?: React.ReactNode;sx?: SxProps<Theme>;placeholder?: string;value: string;onChange: (value: string) => void;-}> = ({- value,- onChange,- icon,- sx = [],- placeholder = t("albums_search_hint"),-}) => {+}> = ({ value, onChange, sx = [], placeholder = t("albums_search_hint") }) => {const inputRef = useRef<HTMLInputElement>(null);const handleClear = () => {@@ -30,11 +24,13 @@ export const CollectionDialogSearchField: React.FC<{direction="row"sx={[searchFieldSx, ...(isSxArray(sx) ? sx : [sx])]}>- {icon ? (- <Stack sx={searchIconSx}>{icon}</Stack>- ) : (- <SearchIcon sx={searchIconSx} />- )}+ <Stack sx={searchIconSx}>+ <HugeiconsIcon+ icon={Search01Icon}+ size={18}+ color="currentColor"+ />+ </Stack><InputBaseinputRef={inputRef}fullWidth@@ -58,7 +54,6 @@ export const CollectionDialogSearchField: React.FC<{};const searchIconSx = (theme: Theme) => ({- fontSize: 20,flexShrink: 0,color: "rgba(0 0 0 / 0.4)",...theme.applyStyles("dark", { color: "rgba(255 255 255 / 0.4)" }),diff --git a/web/apps/photos/src/components/CollectionSelector.tsx b/web/apps/photos/src/components/CollectionSelector.tsxindex a78d8af94a..50a649262b 100644--- a/web/apps/photos/src/components/CollectionSelector.tsx+++ b/web/apps/photos/src/components/CollectionSelector.tsx@@ -14,7 +14,6 @@ import {Cancel01Icon,Image01Icon,ImageAdd02Icon,- Search01Icon,} from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import ArchiveIcon from "@mui/icons-material/Archive";@@ -270,13 +269,6 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = (<SearchFieldvalue={searchTerm}onChange={setSearchTerm}- icon={- <HugeiconsIcon- icon={Search01Icon}- size={18}- color="currentColor"- />- }sx={{ minWidth: 0, px: "16px", gap: "12px" }}/><Tabs