diff --git a/frontend/src/components/BooksDetailsCard.tsx b/frontend/src/components/BooksDetailsCard.tsx index 98ac9ee..295ff7e 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(); @@ -88,7 +88,7 @@ const BookDetailsCard: React.FC = (props) => { - {/* + {ipfsGateways.map((gateway) => ( ))} - */} + {t('disclaimer.nolink_warning')}