From 7ffd59c169812f2b42b9cddd4c24d07bb735192f Mon Sep 17 00:00:00 2001 From: zeppi Date: Sat, 17 Jul 2021 12:19:44 -0400 Subject: [PATCH] more lint --- ui/component/commentCreate/view.jsx | 51 +++++++++++++++++++++-------- ui/modal/modalRemoveCard/view.jsx | 23 ++++--------- ui/page/wallet/view.jsx | 1 - 3 files changed, 44 insertions(+), 31 deletions(-) diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 42094eae5..6be016f43 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -1,6 +1,6 @@ // @flow import type { ElementRef } from 'react'; -import { SIMPLE_SITE } from 'config'; +import { SIMPLE_SITE, STRIPE_PUBLIC_KEY } from 'config'; import * as PAGES from 'constants/pages'; import * as ICONS from 'constants/icons'; import React from 'react'; @@ -16,7 +16,6 @@ import CreditAmount from 'component/common/credit-amount'; import ChannelThumbnail from 'component/channelThumbnail'; import UriIndicator from 'component/uriIndicator'; import Empty from 'component/common/empty'; -import { STRIPE_PUBLIC_KEY } from 'config'; import { Lbryio } from 'lbryinc'; let stripeEnvironment = 'test'; @@ -228,7 +227,7 @@ export function CommentCreate(props: Props) { // handleCreateComment(null); }) - .catch(function(error) { + .catch(function (error) { var displayError = 'Sorry, there was an error in processing your payment!'; if (error.message !== 'payment intent failed to confirm') { @@ -305,11 +304,15 @@ export function CommentCreate(props: Props) { } if (isReviewingSupportComment && activeChannelClaim) { - return (
- +
@@ -371,7 +374,15 @@ export function CommentCreate(props: Props) { textAreaMaxLength={livestream ? FF_MAX_CHARS_IN_LIVESTREAM_COMMENT : FF_MAX_CHARS_IN_COMMENT} /> {/* TODO: the tip validation is done in selector */} - {isSupportComment && setTipAmount(amount)} />} + {isSupportComment && ( + setTipAmount(amount)} + /> + )}
{isSupportComment ? ( <> @@ -406,16 +417,28 @@ export function CommentCreate(props: Props) { requiresAuth={IS_WEB} /> {!claimIsMine && ( -