review changes

This commit is contained in:
zeppi 2021-03-26 18:17:06 -04:00 committed by jessopb
parent 9e86cab4eb
commit ad10250e16
3 changed files with 10 additions and 7 deletions

View file

@ -3,6 +3,7 @@ import { SIMPLE_SITE, SITE_NAME, ENABLE_FILE_REACTIONS } from 'config';
import * as PAGES from 'constants/pages'; import * as PAGES from 'constants/pages';
import * as MODALS from 'constants/modal_types'; import * as MODALS from 'constants/modal_types';
import * as ICONS from 'constants/icons'; import * as ICONS from 'constants/icons';
import * as PUBLISH_MODES from 'constants/publish_types';
import React from 'react'; import React from 'react';
import Button from 'component/button'; import Button from 'component/button';
import FileDownloadLink from 'component/fileDownloadLink'; import FileDownloadLink from 'component/fileDownloadLink';
@ -114,7 +115,7 @@ function FileActions(props: Props) {
className="button--file-action" className="button--file-action"
icon={ICONS.EDIT} icon={ICONS.EDIT}
label={__('Edit')} label={__('Edit')}
navigate={`/$/upload${isLivestreamClaim ? '?type=livestream' : ''}`} navigate={`/$/${PAGES.UPLOAD}${isLivestreamClaim ? `?ytype=${PUBLISH_MODES.LIVESTREAM}` : ''}`}
onClick={() => { onClick={() => {
prepareEdit(claim, editUri, fileInfo); prepareEdit(claim, editUri, fileInfo);
}} }}
@ -125,7 +126,7 @@ function FileActions(props: Props) {
className="button--file-action" className="button--file-action"
icon={ICONS.PUBLISH} icon={ICONS.PUBLISH}
label={__('Publish Replay')} label={__('Publish Replay')}
navigate="/$/upload?type=file" navigate={`/$/${PAGES.UPLOAD}?ytype=${PUBLISH_MODES.FILE}`}
onClick={() => { onClick={() => {
prepareEdit(claim, editUri, fileInfo); prepareEdit(claim, editUri, fileInfo);
}} }}

View file

@ -55,11 +55,13 @@ export default function LivestreamSetupPage(props: Props) {
<li>{__(`Tune: Zerolatency`)}</li> <li>{__(`Tune: Zerolatency`)}</li>
</ul> </ul>
<p> <p>
{__(`If using other livestreaming software, make sure the bitrate is below 5Mbps or the stream will not work.`)} {__(
`If using other livestreaming software, make sure the bitrate is below 5000 kbps or the stream will not work.`
)}
</p> </p>
<p> <p>
{__( {__(
`Please note: You'll need to record your own stream through your software if you plan to share it afterward. You can also delete it if you prefer not to upload the copy. In the near future, we'll support a more streamlined process that will let you upload the replay.` `Please note: You'll need to record your own stream through your software if you plan to share it afterward. You can also delete it if you prefer not to upload the copy.`
)} )}
</p> </p>
<p> <p>
@ -69,9 +71,9 @@ export default function LivestreamSetupPage(props: Props) {
</p> </p>
<p> <p>
{__(`After your livestream: {__(`After your livestream:
Click the Upload Stream button. This will allow you to edit details before sharing on Odysee. Be sure to select the saved mp4 file you recorded.`)} Click the Publish Replay button. This will allow you to edit details before sharing on Odysee. Be sure to select the saved mp4 file you recorded.`)}
</p> </p>
<p>{__(`Click *save* and you are done!`)}</p> <p>{__(`Click Save and you are done!`)}</p>
</div> </div>
); );
React.useEffect(() => { React.useEffect(() => {

View file

@ -93,7 +93,7 @@ export const doPublishDesktop = (filePath: string, preview?: boolean) => (dispat
// on the publishes page. This doesn't exist on desktop so wait until we get a response // on the publishes page. This doesn't exist on desktop so wait until we get a response
// from the SDK // from the SDK
// @if TARGET='web' // @if TARGET='web'
dispatch(push(noFile ? `/$/${PAGES.UPLOADS}` : `/$/${PAGES.LIVESTREAM}`)); dispatch(push(noFile ? `/$/${PAGES.LIVESTREAM}` : `/$/${PAGES.UPLOADS}`));
// @endif // @endif
dispatch(doPublish(publishSuccess, publishFail)); dispatch(doPublish(publishSuccess, publishFail));