Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore(CollecctionSortOptions):use-hugeicons-for-arrow

Aswin Asokf02c70ad0534
diff --git a/web/packages/new/package.json b/web/packages/new/package.json
index 6b128d0d90..7900885eaf 100644
--- a/web/packages/new/package.json
+++ b/web/packages/new/package.json
@@ -3,6 +3,8 @@
"version": "0.0.0",
"private": true,
"dependencies": {
+ "@hugeicons/core-free-icons": "^1.0.5",
+ "@hugeicons/react": "^1.0.5",
"@mui/material": "^7.3.4",
"@mui/system": "^7.3.3",
"@mui/x-date-pickers": "^8.14.0",
@@ -10,8 +12,6 @@
"ente-base": "*",
"ente-gallery": "*",
"ente-utils": "*",
- "@hugeicons/react": "^1.0.5",
- "@hugeicons/core-free-icons": "^1.0.5",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
diff --git a/web/packages/new/photos/components/CollectionsSortOptions.tsx b/web/packages/new/photos/components/CollectionsSortOptions.tsx
index b3f04b0fc0..acebead74f 100644
--- a/web/packages/new/photos/components/CollectionsSortOptions.tsx
+++ b/web/packages/new/photos/components/CollectionsSortOptions.tsx
@@ -1,3 +1,5 @@
+import { ArrowDown02Icon, ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
import SortIcon from "@mui/icons-material/Sort";
import {
IconButton,
@@ -9,8 +11,6 @@ import {
} from "@mui/material";
import Menu, { type MenuProps } from "@mui/material/Menu";
import type { CollectionsSortBy } from "ente-new/photos/services/collection-summary";
-import { ArrowDown02Icon, ArrowUp02Icon } from "@hugeicons/core-free-icons";
-import { HugeiconsIcon } from "@hugeicons/react";
import { t } from "i18next";
import React, { useState } from "react";
@@ -175,7 +175,7 @@ const SortCategoryOption: React.FC<SortCategoryOptionProps> = ({
}) => {
const isSelected = category === activeCategory;
const directionLabel = activeAscending ? ascLabel : descLabel;
- const ArrowIcon = activeAscending ? ArrowUp02Icon : ArrowDown02Icon;
+ const arrowIcon = activeAscending ? ArrowUp02Icon : ArrowDown02Icon;
return (
<MenuItem
@@ -214,7 +214,11 @@ const SortCategoryOption: React.FC<SortCategoryOptionProps> = ({
<Typography sx={{ fontSize: "0.875rem" }}>
{directionLabel}
</Typography>
- <ArrowIcon size={18} color="currentColor" />
+ <HugeiconsIcon
+ icon={arrowIcon}
+ size={18}
+ color="currentColor"
+ />
</Stack>
)}
</Stack>