version/0.5 #3
|
@ -19,12 +19,12 @@ interface IProps {
|
||||||
|
|
||||||
const BookDetailsCard: React.FC<IProps> = (props) => {
|
const BookDetailsCard: React.FC<IProps> = (props) => {
|
||||||
|
|
||||||
// const downloadLinkFromIPFS = (gateway: string, book: Book) => {
|
const downloadLinkFromIPFS = (gateway: string, book: Book) => {
|
||||||
// return (
|
return (
|
||||||
// `https://${gateway}/ipfs/${book.ipfs_cid}?filename=` +
|
`https://${gateway}/ipfs/${book.ipfs_cid}?filename=` +
|
||||||
// encodeURIComponent(`${book.title}_${book.author}.${book.extension}`)
|
encodeURIComponent(`${book.title}_${book.author}.${book.extension}`)
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ const BookDetailsCard: React.FC<IProps> = (props) => {
|
||||||
</CardBody>
|
</CardBody>
|
||||||
<CardFooter flexDirection="column">
|
<CardFooter flexDirection="column">
|
||||||
|
|
||||||
{/* <SimpleGrid columns={{ sm: 2, md: 3, lg: 4, xl: 5 }} spacing={{ base: 2, md: 4 }}>
|
<SimpleGrid columns={{ sm: 2, md: 3, lg: 4, xl: 5 }} spacing={{ base: 2, md: 4 }}>
|
||||||
{ipfsGateways.map((gateway) => (
|
{ipfsGateways.map((gateway) => (
|
||||||
<Button
|
<Button
|
||||||
as={ExternalLink}
|
as={ExternalLink}
|
||||||
|
@ -100,7 +100,7 @@ const BookDetailsCard: React.FC<IProps> = (props) => {
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
</SimpleGrid> */}
|
</SimpleGrid>
|
||||||
|
|
||||||
<Flex><Text fontWeight={'bold'}>{t('disclaimer.nolink_warning')}</Text></Flex>
|
<Flex><Text fontWeight={'bold'}>{t('disclaimer.nolink_warning')}</Text></Flex>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue