Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak

Manav Rathi433000918f80
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
index bf2e21bc71..afa5e08bfb 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
@@ -407,17 +407,28 @@ const FileInfoSidebar = styled((props: DialogProps) => (
});
interface InfoItemProps {
- icon: JSX.Element;
+ /**
+ * The icon associated with the info entry.
+ */
+ icon: React.ReactNode;
+ /**
+ * The primary content / title of the info entry.
+ */
title?: string;
- caption?: string | JSX.Element;
+ /**
+ * The secondary information / subtext associated with the info entry.
+ */
+ caption?: React.ReactNode;
openEditor?: any;
loading?: boolean;
hideEditOption?: any;
customEndButton?: any;
- children?: any;
}
-const InfoItem: React.FC<InfoItemProps> = ({
+/**
+ * An entry in the file info panel listing.
+ */
+const InfoItem: React.FC<React.PropsWithChildren<InfoItemProps>> = ({
icon,
title,
caption,