Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathief6734195f9a
diff --git a/web/apps/photos/src/components/Collections/CollectionOptions/QuickOptions/index.tsx b/web/apps/photos/src/components/Collections/CollectionOptions/QuickOptions/index.tsx
index 0e16383a66..65af430f46 100644
--- a/web/apps/photos/src/components/Collections/CollectionOptions/QuickOptions/index.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionOptions/QuickOptions/index.tsx
@@ -6,7 +6,7 @@ import { DownloadQuickOption } from "./DownloadQuickOption";
import { EmptyTrashQuickOption } from "./EmptyTrashQuickOption";
import { ShareQuickOption } from "./ShareQuickOption";
-interface Iprops {
+interface QuickOptionsProps {
handleCollectionAction: (
action: CollectionActions,
loader?: boolean,
@@ -15,11 +15,11 @@ interface Iprops {
isDownloadInProgress: boolean;
}
-export function QuickOptions({
+export const QuickOptions: React.FC<QuickOptionsProps> = ({
handleCollectionAction,
collectionSummaryType,
isDownloadInProgress,
-}: Iprops) {
+}) => {
return (
<FlexWrapper sx={{ gap: "16px" }}>
{showEmptyTrashQuickOption(collectionSummaryType) && (
@@ -44,7 +44,7 @@ export function QuickOptions({
)}
</FlexWrapper>
);
-}
+};
const showEmptyTrashQuickOption = (type: CollectionSummaryType) => {
return type === CollectionSummaryType.trash;
diff --git a/web/apps/photos/src/types/collection.ts b/web/apps/photos/src/types/collection.ts
index 3442ff98e9..64fa127b43 100644
--- a/web/apps/photos/src/types/collection.ts
+++ b/web/apps/photos/src/types/collection.ts
@@ -18,6 +18,10 @@ export enum CollectionSummaryType {
pinned = "pinned",
}
+/**
+ * A massaged version of a {@link Collection} suitable for being directly shown
+ * in the UI.
+ */
export interface CollectionSummary {
id: number;
name: string;