diff --git a/frontend/src/components/BooksDetailsCard.tsx b/frontend/src/components/BooksDetailsCard.tsx index 2695966..dec5545 100644 --- a/frontend/src/components/BooksDetailsCard.tsx +++ b/frontend/src/components/BooksDetailsCard.tsx @@ -19,12 +19,12 @@ interface IProps { const BookDetailsCard: React.FC = (props) => { - const downloadLinkFromIPFS = (gateway: string, book: Book) => { - return ( - `https://${gateway}/ipfs/${book.ipfs_cid}?filename=` + - encodeURIComponent(`${book.title}_${book.author}.${book.extension}`) - ); - } + // const downloadLinkFromIPFS = (gateway: string, book: Book) => { + // return ( + // `https://${gateway}/ipfs/${book.ipfs_cid}?filename=` + + // encodeURIComponent(`${book.title}_${book.author}.${book.extension}`) + // ); + // } const { t } = useTranslation(); @@ -54,7 +54,7 @@ const BookDetailsCard: React.FC = (props) => { - {id} + {/* {id} */} {ipfs_cid} @@ -88,7 +88,7 @@ const BookDetailsCard: React.FC = (props) => { - + {/* {ipfsGateways.map((gateway) => ( ))} - + */} - {/* {t('disclaimer.nolink_warning')} */} + {t('disclaimer.nolink_warning')}