Fix button

This commit is contained in:
Rafael 2022-03-16 11:55:37 -03:00 committed by Thomas Zarebczan
parent 7400b9c12f
commit d3576315f3

View file

@ -221,15 +221,9 @@ const EmbedWrapperPage = (props: Props) => {
<>
<FileViewerEmbeddedTitle uri={uri} />
<Button
onClick={() => {
const formattedUrl = formatLbryUrlForWeb(uri);
push(formattedUrl);
}}
iconSize={30}
title={__('View')}
className="button--icon button--view"
/>
<a target="_blank" rel="noopener noreferrer" href={formatLbryUrlForWeb(uri)}>
<Button iconSize={30} title={__('View')} className="button--icon button--view" />
</a>
</>
)}
</div>