diff --git a/src/pages/gallery/components/Collections.tsx b/src/pages/gallery/components/Collections.tsx index f824ec2f5..b992f7570 100644 --- a/src/pages/gallery/components/Collections.tsx +++ b/src/pages/gallery/components/Collections.tsx @@ -5,7 +5,7 @@ import styled from 'styled-components'; interface CollectionProps { collections: collection[]; selected?: string; - selectCollection: (id?: string) => void; + selectCollection: (id?: number) => void; } const Container = styled.div` @@ -51,7 +51,7 @@ const Chip = styled.button<{ active: boolean }>` export default function Collections(props: CollectionProps) { const { selected, collections, selectCollection } = props; - const clickHandler = (id?: string) => () => selectCollection(id); + const clickHandler = (id?: number) => () => selectCollection(id); return diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index e8131ab08..509a5483a 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -276,7 +276,7 @@ export default function Gallery(props) { ); } - const selectCollection = (id?: string) => { + const selectCollection = (id?: number) => { const href = `/gallery?collection=${id || ''}`; router.push(href, undefined, { shallow: true }); }; diff --git a/src/services/uploadService.ts b/src/services/uploadService.ts index a69cdbacb..e36d8e4f8 100644 --- a/src/services/uploadService.ts +++ b/src/services/uploadService.ts @@ -49,7 +49,7 @@ interface objectKeys { } interface uploadFile extends objectKeys { - collectionID: string, + collectionID: number, encryptedKey: string; keyDecryptionNonce: string; metadata?: {