π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathi5c7f775f1466
diff --git a/web/apps/photos/src/components/Collections/AllCollections/index.tsx b/web/apps/photos/src/components/Collections/AllCollections/index.tsxindex 24030a6e87..1ceb79ac56 100644--- a/web/apps/photos/src/components/Collections/AllCollections/index.tsx+++ b/web/apps/photos/src/components/Collections/AllCollections/index.tsx@@ -1,3 +1,4 @@+import { CollectionsSortOptions } from "@/new/photos/components/CollectionsSortOptions";import type { CollectionSummary } from "@/new/photos/types/collection";import { CollectionsSortBy } from "@/new/photos/types/collection";import {@@ -19,7 +20,6 @@ import {Transition,} from "components/Collections/AllCollections/dialog";import { t } from "i18next";-import { CollectionsSortOptions } from "../CollectionsSortOptions";import AllCollectionContent from "./content";interface AllCollectionsProps {diff --git a/web/apps/photos/src/components/Collections/CollectionListBar.tsx b/web/apps/photos/src/components/Collections/CollectionListBar.tsxindex 3a17c83dd5..742881a36d 100644--- a/web/apps/photos/src/components/Collections/CollectionListBar.tsx+++ b/web/apps/photos/src/components/Collections/CollectionListBar.tsx@@ -1,4 +1,5 @@import { useIsMobileWidth } from "@/base/hooks";+import { CollectionsSortOptions } from "@/new/photos/components/CollectionsSortOptions";import { BarItemTile, ItemCard } from "@/new/photos/components/ItemCards";import type { Person } from "@/new/photos/services/ml/cgroups";import type {@@ -33,7 +34,6 @@ import React, {import AutoSizer from "react-virtualized-auto-sizer";import { FixedSizeList, ListChildComponentProps, areEqual } from "react-window";import type { GalleryBarMode } from ".";-import { CollectionsSortOptions } from "./CollectionsSortOptions";export interface CollectionListBarProps {/**diff --git a/web/apps/photos/src/components/Collections/CollectionsSortOptions.tsx b/web/packages/new/photos/components/CollectionsSortOptions.tsxsimilarity index 88%rename from web/apps/photos/src/components/Collections/CollectionsSortOptions.tsxrename to web/packages/new/photos/components/CollectionsSortOptions.tsxindex 7e93db6f92..89c239313a 100644--- a/web/apps/photos/src/components/Collections/CollectionsSortOptions.tsx+++ b/web/packages/new/photos/components/CollectionsSortOptions.tsx@@ -5,6 +5,7 @@ import TickIcon from "@mui/icons-material/Done";import SortIcon from "@mui/icons-material/Sort";import SvgIcon from "@mui/material/SvgIcon";import { t } from "i18next";+import React from "react";interface CollectionsSortOptionsProps {/**@@ -43,13 +44,17 @@ export const CollectionsSortOptions: React.FC<CollectionsSortOptionsProps> = ({menuPaperProps={{sx: {backgroundColor: (theme) =>- nestedInDialog && theme.colors.background.elevated2,+ nestedInDialog+ ? theme.colors.background.elevated2+ : undefined,},}}triggerButtonProps={{sx: {- background: (theme) =>- !disableTriggerButtonBackground && theme.colors.fill.faint,+ backgroundColor: (theme) =>+ disableTriggerButtonBackground+ ? undefined+ : theme.colors.fill.faint,},}}>diff --git a/web/packages/shared/components/OverflowMenu/menu.tsx b/web/packages/shared/components/OverflowMenu/menu.tsxindex 6a051803bc..136a0b6a3c 100644--- a/web/packages/shared/components/OverflowMenu/menu.tsx+++ b/web/packages/shared/components/OverflowMenu/menu.tsx@@ -1,11 +1,16 @@-import { IconButton, styled, type PaperProps } from "@mui/material";+import {+ IconButton,+ styled,+ type IconButtonProps,+ type PaperProps,+} from "@mui/material";import Menu, { type MenuProps } from "@mui/material/Menu";import React, { useState } from "react";import { OverflowMenuContext } from "./context";export interface Iprops {triggerButtonIcon: React.ReactNode;- triggerButtonProps?: any;+ triggerButtonProps?: Partial<IconButtonProps>;children?: React.ReactNode;ariaControls: string;menuPaperProps?: Partial<PaperProps>;