From 47bc31d9bedc5ab05a54ab5ee8453d62add11e1b Mon Sep 17 00:00:00 2001 From: Andrey Dolgolev Date: Tue, 27 Jul 2021 20:17:57 +0300 Subject: [PATCH] Add fixes. --- frontend/sample.env | 14 +++++++------- frontend/src/components/NewSubscription.js | 2 +- frontend/src/components/SubscriptionsList.js | 2 -- frontend/src/core/hooks/useSubscriptions.js | 2 -- .../src/core/services/subscriptions.service.js | 2 -- 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/frontend/sample.env b/frontend/sample.env index 11a611c8..e295fc84 100644 --- a/frontend/sample.env +++ b/frontend/sample.env @@ -1,9 +1,9 @@ -export REACT_APP_SIMIOTICS_SEARCH_URL=http://localhost:5000 -export REACT_APP_MIXPANEL_TOKEN="" -export REACT_APP_SIMIOTICS_AUTH_URL=http://localhost:7474 -export REACT_APP_SIMIOTICS_JOURNALS_URL=http://localhost:7475 -export REACT_APP_BUGOUT_CONTACTUS_TOKEN="" -export REACT_APP_BUGOUT_CONTACTUS_JOURNAL_ID="" -export REACT_APP_STRIPE_PUBLISHABLE_KEY="" +export NEXT_PUBLIC_SIMIOTICS_SEARCH_URL=http://localhost:5000 +export NEXT_PUBLIC_MIXPANEL_TOKEN="" +export NEXT_PUBLIC_SIMIOTICS_AUTH_URL=http://localhost:7474 +export NEXT_PUBLIC_SIMIOTICS_JOURNALS_URL=http://localhost:7475 +export NEXT_PUBLIC_BUGOUT_CONTACTUS_TOKEN="" +export NEXT_PUBLIC_BUGOUT_CONTACTUS_JOURNAL_ID="" +export NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="" export NEXT_PUBLIC_MOONSTREAM_API_URL=http://localhost:7481 diff --git a/frontend/src/components/NewSubscription.js b/frontend/src/components/NewSubscription.js index 3994d8ff..2f068188 100644 --- a/frontend/src/components/NewSubscription.js +++ b/frontend/src/components/NewSubscription.js @@ -44,7 +44,7 @@ const NewSubscription = ({ isFreeOption, onClose }) => { type: isFreeOption ? "free" : radioState, }); }; - console.log(typesCache.data); + return (
Subscribe to a new address diff --git a/frontend/src/components/SubscriptionsList.js b/frontend/src/components/SubscriptionsList.js index dee053fe..f34a89e8 100644 --- a/frontend/src/components/SubscriptionsList.js +++ b/frontend/src/components/SubscriptionsList.js @@ -23,10 +23,8 @@ const List = (data) => { useSubscriptions(); const updateCallback = ({ id, note }) => { - console.log("updateCallback", id); changeNote.mutate({ id, note }); }; - console.log(data); if (subscriptionsCache.data) { return ( diff --git a/frontend/src/core/hooks/useSubscriptions.js b/frontend/src/core/hooks/useSubscriptions.js index 64c798c9..54903d31 100644 --- a/frontend/src/core/hooks/useSubscriptions.js +++ b/frontend/src/core/hooks/useSubscriptions.js @@ -27,8 +27,6 @@ const useSubscriptions = () => { const getSubscriptions = async () => { const response = await SubscriptionsService.getSubscriptions(); - console.log("getSubscriptions"); - console.log(response.data); return response.data; }; diff --git a/frontend/src/core/services/subscriptions.service.js b/frontend/src/core/services/subscriptions.service.js index 755db3d6..62950c63 100644 --- a/frontend/src/core/services/subscriptions.service.js +++ b/frontend/src/core/services/subscriptions.service.js @@ -2,7 +2,6 @@ import { http } from "../utils"; // import axios from "axios"; const API = process.env.NEXT_PUBLIC_MOONSTREAM_API_URL; -console.log(API); export const getStream = ({ searchTerm, limit, offset, isContent }) => http({ @@ -49,7 +48,6 @@ export const deleteJournal = (id) => () => export const createSubscription = () => ({ address, type, label, color }) => { - console.log("createSubscription: ", address, type, label); const data = new FormData(); data.append("address", address); data.append("subscription_type_id", type);