Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak

Manav Rathie4ae03a252ce
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index de1879dac7..64898b43b9 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -1272,17 +1272,17 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
updatePublicShareURLHelper={updatePublicShareURLHelper}
/>
<ManageLinkExpiry
+ onRootClose={onRootClose}
collection={collection}
publicShareProp={publicShareProp}
updatePublicShareURLHelper={updatePublicShareURLHelper}
- onRootClose={onRootClose}
/>
<RowButtonGroup>
<ManageDeviceLimit
+ onRootClose={onRootClose}
collection={collection}
publicShareProp={publicShareProp}
updatePublicShareURLHelper={updatePublicShareURLHelper}
- onRootClose={onRootClose}
/>
<RowButtonDivider />
<ManageDownloadAccess
@@ -1366,17 +1366,17 @@ const ManagePublicCollect: React.FC<ManagePublicCollectProps> = ({
};
interface ManageLinkExpiryProps {
- publicShareProp: PublicURL;
+ onRootClose: () => void;
collection: Collection;
+ publicShareProp: PublicURL;
updatePublicShareURLHelper: (req: UpdatePublicURL) => Promise<void>;
- onRootClose: () => void;
}
const ManageLinkExpiry: React.FC<ManageLinkExpiryProps> = ({
- publicShareProp,
+ onRootClose,
collection,
+ publicShareProp,
updatePublicShareURLHelper,
- onRootClose,
}) => {
const { show: showExpiryOptions, props: expiryOptionsVisibilityProps } =
useModalVisibility();
@@ -1476,17 +1476,17 @@ const microsecsAfter = (after: "hour" | "day" | "week" | "month" | "year") => {
};
interface ManageDeviceLimitProps {
- publicShareProp: PublicURL;
+ onRootClose: () => void;
collection: Collection;
+ publicShareProp: PublicURL;
updatePublicShareURLHelper: (req: UpdatePublicURL) => Promise<void>;
- onRootClose: () => void;
}
const ManageDeviceLimit: React.FC<ManageDeviceLimitProps> = ({
+ onRootClose,
collection,
publicShareProp,
updatePublicShareURLHelper,
- onRootClose,
}) => {
const { show: showDeviceOptions, props: deviceOptionsVisibilityProps } =
useModalVisibility();
@@ -1551,15 +1551,15 @@ const deviceLimitOptions = () =>
}));
interface ManageDownloadAccessProps {
- publicShareProp: PublicURL;
collection: Collection;
+ publicShareProp: PublicURL;
updatePublicShareURLHelper: (req: UpdatePublicURL) => Promise<void>;
}
const ManageDownloadAccess: React.FC<ManageDownloadAccessProps> = ({
+ collection,
publicShareProp,
updatePublicShareURLHelper,
- collection,
}) => {
const { showMiniDialog } = useBaseContext();
@@ -1599,8 +1599,8 @@ const ManageDownloadAccess: React.FC<ManageDownloadAccessProps> = ({
};
interface ManageLinkPasswordProps {
- publicShareProp: PublicURL;
collection: Collection;
+ publicShareProp: PublicURL;
updatePublicShareURLHelper: (req: UpdatePublicURL) => Promise<void>;
}