From bbc598ddf7eaa7375637c8922105f1230d1cf0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczyk?= Date: Wed, 25 May 2022 14:27:26 +0200 Subject: [PATCH] wip --- docker-compose.accounts.yml | 2 +- packages/dashboard-v2/src/pages/payments.js | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/docker-compose.accounts.yml b/docker-compose.accounts.yml index 93d17bf9..7ec78a04 100644 --- a/docker-compose.accounts.yml +++ b/docker-compose.accounts.yml @@ -21,7 +21,7 @@ services: accounts: # uncomment "build" and comment out "image" to build from sources - build: https://github.com/SkynetLabs/skynet-accounts.git#main + build: https://github.com/SkynetLabs/skynet-accounts.git#dashboard-v2-tests # image: skynetlabs/skynet-accounts:1.1.0 container_name: accounts restart: unless-stopped diff --git a/packages/dashboard-v2/src/pages/payments.js b/packages/dashboard-v2/src/pages/payments.js index b3dfbb13..adf2303b 100644 --- a/packages/dashboard-v2/src/pages/payments.js +++ b/packages/dashboard-v2/src/pages/payments.js @@ -112,17 +112,6 @@ const PlansSlider = () => { } }; - const manageSubscription = async () => { - try { - const response = await accountsService.post("stripe/billing", { throwHttpErrors: false, redirect: "manual" }); - console.log(response.headers.location); - debugger; - } catch (error) { - setShowPaymentError(true); - console.error(error); - } - }; - return (
@@ -173,7 +162,7 @@ const PlansSlider = () => {
{(!hasActivePlan || isHigherThanCurrent) && (isCurrentPlanPaid ? ( - ) : ( @@ -183,7 +172,7 @@ const PlansSlider = () => { ))} {isCurrent && } {isLower && ( - )}