diff --git a/.env.defaults b/.env.defaults index 48c0ebb66..bfeb12fff 100644 --- a/.env.defaults +++ b/.env.defaults @@ -19,7 +19,7 @@ THUMBNAIL_CDN_URL=https://image-processor.vanwanet.com/optimize/ WELCOME_VERSION=1.0 # STRIPE -# STRIPE_PUBLIC_KEY='pk_test_NoL1JWL7i1ipfhVId5KfDZgo' +STRIPE_PUBLIC_KEY='pk_test_NoL1JWL7i1ipfhVId5KfDZgo' # Analytics MATOMO_URL=https://analytics.lbry.com/ @@ -52,7 +52,6 @@ YRBL_SAD_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649 #LOGO_TEXT_LIGHT=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd #LOGO_TEXT_DARK=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd #AVATAR_DEFAULT= -#MISSING_THUMB_DEFAULT= #FAVICON= # LOCALE diff --git a/config.js b/config.js index 49e215c5b..89c916654 100644 --- a/config.js +++ b/config.js @@ -35,7 +35,6 @@ const config = { LOGO_TEXT_LIGHT: process.env.LOGO_TEXT_LIGHT, LOGO_TEXT_DARK: process.env.LOGO_TEXT_DARK, AVATAR_DEFAULT: process.env.AVATAR_DEFAULT, - MISSING_THUMB_DEFAULT: process.env.MISSING_THUMB_DEFAULT, // OG OG_TITLE_SUFFIX: process.env.OG_TITLE_SUFFIX, OG_HOMEPAGE_TITLE: process.env.OG_HOMEPAGE_TITLE, diff --git a/package.json b/package.json index b4b78d99e..fcde26e5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lbry", - "version": "0.51.2-rc.3", + "version": "0.51.2-rc.2", "description": "A browser for the LBRY network, a digital marketplace controlled by its users.", "keywords": [ "lbry" diff --git a/static/app-strings.json b/static/app-strings.json index a7e83a936..e5f45808b 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -2090,8 +2090,5 @@ "Expand Comments": "Expand Comments", "Expand": "Expand", "Load More": "Load More", - "Collection": "Collection", - "%channelName% isn't live right now, but the chat is! Check back later to watch the stream.": "%channelName% isn't live right now, but the chat is! Check back later to watch the stream.", - "Review": "Review", "--end--": "--end--" } diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 63e77a026..008a28aa1 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'; @@ -21,8 +21,12 @@ import Empty from 'component/common/empty'; import { getChannelIdFromClaim } from 'util/claim'; import { Lbryio } from 'lbryinc'; -import { getStripeEnvironment } from 'util/stripe'; -let stripeEnvironment = getStripeEnvironment(); +let stripeEnvironment = 'test'; +// if the key contains pk_live it's a live key +// update the environment for the calls to the backend to indicate which environment to hit +if (STRIPE_PUBLIC_KEY.indexOf('pk_live') > -1) { + stripeEnvironment = 'live'; +} const TAB_FIAT = 'TabFiat'; const TAB_LBC = 'TabLBC'; @@ -241,13 +245,10 @@ export function CommentCreate(props: Props) { }, 1500); doToast({ - message: __( - "You sent %tipAmount% LBRY Credits as a tip to %tipChannelName%, I'm sure they appreciate it!", - { - tipAmount: tipAmount, // force show decimal places - tipChannelName, - } - ), + message: __("You sent %tipAmount% LBRY Credits as a tip to %tipChannelName%, I'm sure they appreciate it!", { + tipAmount: tipAmount, // force show decimal places + tipChannelName, + }), }); setSuccessTip({ txid, tipAmount }); @@ -264,8 +265,7 @@ export function CommentCreate(props: Props) { Lbryio.call( 'customer', 'tip', - { - // round to deal with floating point precision + { // round to deal with floating point precision amount: Math.round(100 * roundedAmount), // convert from dollars to cents creator_channel_name: tipChannelName, // creator_channel_name creator_channel_claim_id: channelClaimId, @@ -387,7 +387,12 @@ export function CommentCreate(props: Props) { } }} > - +
@@ -529,8 +534,7 @@ export function CommentCreate(props: Props) { }} /> )} - {/* @if TARGET='web' */} - {!claimIsMine && stripeEnvironment && ( + {!claimIsMine && (