diff --git a/static/app-strings.json b/static/app-strings.json index 2ca236592..4c9cfb516 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1218,5 +1218,6 @@ "Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.": "Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.", "You don't have blocked channels.": "You don't have blocked channels.", "You have one blocked channel.": "You have one blocked channel.", - "You have %channels% blocked channels.": "You have %channels% blocked channels." -} + "You have %channels% blocked channels.": "You have %channels% blocked channels.", + "Drop here to publish!": "Drop here to publish!" +} \ No newline at end of file diff --git a/ui/page/embedWrapper/view.jsx b/ui/page/embedWrapper/view.jsx index 98115323a..288b9d70b 100644 --- a/ui/page/embedWrapper/view.jsx +++ b/ui/page/embedWrapper/view.jsx @@ -1,6 +1,8 @@ // @flow import React, { useEffect } from 'react'; import FileRender from 'component/fileRender'; +import FileViewerEmbeddedTitle from 'component/fileViewerEmbeddedTitle'; +import Spinner from 'component/spinner'; type Props = { uri: string, @@ -17,6 +19,10 @@ export const EmbedContext = React.createContext(); const EmbedWrapperPage = (props: Props) => { const { resolveUri, claim, uri, doPlayUri, costInfo, streamingUrl, doFetchCostInfoForUri, isResolvingUri } = props; const haveClaim = Boolean(claim); + const readyToDisplay = claim && streamingUrl; + const loading = !claim && isResolvingUri; + const noContentFound = !claim && !isResolvingUri; + const isPaidContent = costInfo && costInfo.cost > 0; useEffect(() => { if (resolveUri && uri && !haveClaim) { @@ -34,12 +40,21 @@ const EmbedWrapperPage = (props: Props) => { }, [uri, haveClaim, doFetchCostInfoForUri]); return ( -