From 267db2d6149fa889155db1c5bd47352e038e3303 Mon Sep 17 00:00:00 2001 From: jessop Date: Mon, 3 Dec 2018 12:58:00 -0500 Subject: [PATCH] adds LBRY and Permanent URLS to info component --- client/src/containers/AssetInfo/view.jsx | 31 ++++++++++++++++++------ 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/client/src/containers/AssetInfo/view.jsx b/client/src/containers/AssetInfo/view.jsx index 0cd4d22b..a5c58941 100644 --- a/client/src/containers/AssetInfo/view.jsx +++ b/client/src/containers/AssetInfo/view.jsx @@ -2,22 +2,20 @@ import React from 'react'; import { Link } from 'react-router-dom'; import Label from '@components/Label'; import RowLabeled from '@components/RowLabeled'; -import Row from '@components/Row'; import SpaceBetween from '@components/SpaceBetween'; import AssetShareButtons from '@components/AssetShareButtons'; import ClickToCopy from '@components/ClickToCopy'; import HorizontalSplit from '@components/HorizontalSplit'; - import siteConfig from '@config/siteConfig.json'; -const { details: { host } } = siteConfig; import createCanonicalLink from '../../../../utils/createCanonicalLink'; import AssetInfoFooter from '../../components/AssetInfoFooter/index'; +const { details: { host } } = siteConfig; class AssetInfo extends React.Component { render () { const { editable, asset } = this.props; const { claimViews, claimData } = asset; - const { channelName, claimId, channelShortId, description, name, fileExt, contentType, host } = claimData; + const { channelName, claimId, channelShortId, description, name, fileExt, contentType, host, certificateId } = claimData; const canonicalUrl = createCanonicalLink({ asset: { ...claimData, shortId: asset.shortId }}); const assetCanonicalUrl = `${host}${canonicalUrl}`; @@ -25,7 +23,7 @@ class AssetInfo extends React.Component { let channelCanonicalUrl; if (channelName) { const channel = { - name: channelName, + name : channelName, shortId: channelShortId, }; channelCanonicalUrl = `${createCanonicalLink({channel})}`; @@ -116,6 +114,18 @@ class AssetInfo extends React.Component { } /> + + } + content={ + + } + /> + Download + + LBRY URL + } /> - + ); } }; -export default AssetInfo; \ No newline at end of file +export default AssetInfo;