Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathi9ac9842e53e0
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index ecd2f07832..b658cbcf08 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -65,7 +65,6 @@ import {
unshareCollection,
updateShareableURL,
} from "services/collectionService";
-import { SetPublicShareProp } from "types/publicCollection";
import {
appendCollectionKeyToShareURL,
getDeviceLimitOptions,
@@ -234,6 +233,8 @@ function SharingDetails({ collection, type }) {
);
}
+type SetPublicShareProp = React.Dispatch<React.SetStateAction<PublicURL>>;
+
interface EnablePublicShareOptionsProps {
collection: Collection;
setPublicShareProp: (value: PublicURL) => void;
diff --git a/web/apps/photos/src/components/Directory/index.tsx b/web/apps/photos/src/components/Directory/index.tsx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/apps/photos/src/types/deduplicate/index.ts b/web/apps/photos/src/types/deduplicate/index.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/apps/photos/src/types/publicCollection/index.ts b/web/apps/photos/src/types/publicCollection/index.ts
deleted file mode 100644
index f11dd79059..0000000000
--- a/web/apps/photos/src/types/publicCollection/index.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import type { PublicURL } from "@/media/collection";
-import { TimeStampListItem } from "components/PhotoList";
-
-export interface PublicCollectionGalleryContextType {
- token: string;
- passwordToken: string;
- referralCode: string | null;
- accessedThroughSharedURL: boolean;
- photoListHeader: TimeStampListItem;
- photoListFooter: TimeStampListItem;
-}
-
-export type SetPublicShareProp = React.Dispatch<
- React.SetStateAction<PublicURL>
->;
diff --git a/web/apps/photos/src/utils/publicCollectionGallery/index.ts b/web/apps/photos/src/utils/publicCollectionGallery/index.ts
index c038aabb74..c0e4cc9ff6 100644
--- a/web/apps/photos/src/utils/publicCollectionGallery/index.ts
+++ b/web/apps/photos/src/utils/publicCollectionGallery/index.ts
@@ -1,17 +1,21 @@
+import { TimeStampListItem } from "components/PhotoList";
import { createContext } from "react";
-import { PublicCollectionGalleryContextType } from "types/publicCollection";
-const defaultPublicCollectionGalleryContext: PublicCollectionGalleryContextType =
- {
+export interface PublicCollectionGalleryContextType {
+ token: string;
+ passwordToken: string;
+ referralCode: string | null;
+ accessedThroughSharedURL: boolean;
+ photoListHeader: TimeStampListItem;
+ photoListFooter: TimeStampListItem;
+}
+
+export const PublicCollectionGalleryContext =
+ createContext<PublicCollectionGalleryContextType>({
token: null,
passwordToken: null,
referralCode: null,
accessedThroughSharedURL: false,
photoListHeader: null,
photoListFooter: null,
- };
-
-export const PublicCollectionGalleryContext =
- createContext<PublicCollectionGalleryContextType>(
- defaultPublicCollectionGalleryContext,
- );
+ });