Clear dev-web warnings and lint

This commit is contained in:
infiinte-persistence 2021-02-17 15:28:58 +08:00 committed by Sean Yesmunt
parent b0cc1d7f51
commit 9e9183aa95
3 changed files with 7 additions and 1 deletions

View file

@ -4,8 +4,10 @@ import React, { useEffect, forwardRef } from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import classnames from 'classnames';
import { SIMPLE_SITE } from 'config';
import { parseURI, convertToShareLink } from 'lbry-redux';
import { parseURI } from 'lbry-redux';
// @if TARGET='app'
import { openClaimPreviewMenu } from 'util/context-menu';
// @endif
import { formatLbryUrlForWeb } from 'util/url';
import { isEmpty } from 'util/object';
import FileThumbnail from 'component/fileThumbnail';

View file

@ -14,7 +14,9 @@ import { parseURI } from 'lbry-redux';
import FileProperties from 'component/fileProperties';
import FileDownloadLink from 'component/fileDownloadLink';
import ClaimRepostAuthor from 'component/claimRepostAuthor';
// @if TARGET='app'
import { openClaimPreviewMenu } from 'util/context-menu';
// @endif
type Props = {
uri: string,

View file

@ -107,6 +107,7 @@ export function openSnippetMenu(codeMirror, event) {
}
export function openClaimPreviewMenu(claim, event) {
// @if TARGET='app'
let templates = [];
if (claim) {
@ -135,6 +136,7 @@ export function openClaimPreviewMenu(claim, event) {
if (templates.length !== 0) {
remote.Menu.buildFromTemplate(templates).popup({});
}
// @endif
}
// Block context menu