pull/20/head
Andrey Dolgolev 2021-07-27 20:17:57 +03:00
rodzic 51801bd91a
commit 47bc31d9be
5 zmienionych plików z 8 dodań i 14 usunięć

Wyświetl plik

@ -1,9 +1,9 @@
export REACT_APP_SIMIOTICS_SEARCH_URL=http://localhost:5000 export NEXT_PUBLIC_SIMIOTICS_SEARCH_URL=http://localhost:5000
export REACT_APP_MIXPANEL_TOKEN="<YOUR MIXPANEL TOKEN HERE>" export NEXT_PUBLIC_MIXPANEL_TOKEN="<YOUR MIXPANEL TOKEN HERE>"
export REACT_APP_SIMIOTICS_AUTH_URL=http://localhost:7474 export NEXT_PUBLIC_SIMIOTICS_AUTH_URL=http://localhost:7474
export REACT_APP_SIMIOTICS_JOURNALS_URL=http://localhost:7475 export NEXT_PUBLIC_SIMIOTICS_JOURNALS_URL=http://localhost:7475
export REACT_APP_BUGOUT_CONTACTUS_TOKEN="<Brood token for contact user>" export NEXT_PUBLIC_BUGOUT_CONTACTUS_TOKEN="<Brood token for contact user>"
export REACT_APP_BUGOUT_CONTACTUS_JOURNAL_ID="<journal ID for contact journal>" export NEXT_PUBLIC_BUGOUT_CONTACTUS_JOURNAL_ID="<journal ID for contact journal>"
export REACT_APP_STRIPE_PUBLISHABLE_KEY="<stripe publishable key>" export NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="<stripe publishable key>"
export NEXT_PUBLIC_MOONSTREAM_API_URL=http://localhost:7481 export NEXT_PUBLIC_MOONSTREAM_API_URL=http://localhost:7481

Wyświetl plik

@ -44,7 +44,7 @@ const NewSubscription = ({ isFreeOption, onClose }) => {
type: isFreeOption ? "free" : radioState, type: isFreeOption ? "free" : radioState,
}); });
}; };
console.log(typesCache.data);
return ( return (
<form onSubmit={handleSubmit(createSubscriptionWrap)}> <form onSubmit={handleSubmit(createSubscriptionWrap)}>
<ModalHeader>Subscribe to a new address</ModalHeader> <ModalHeader>Subscribe to a new address</ModalHeader>

Wyświetl plik

@ -23,10 +23,8 @@ const List = (data) => {
useSubscriptions(); useSubscriptions();
const updateCallback = ({ id, note }) => { const updateCallback = ({ id, note }) => {
console.log("updateCallback", id);
changeNote.mutate({ id, note }); changeNote.mutate({ id, note });
}; };
console.log(data);
if (subscriptionsCache.data) { if (subscriptionsCache.data) {
return ( return (

Wyświetl plik

@ -27,8 +27,6 @@ const useSubscriptions = () => {
const getSubscriptions = async () => { const getSubscriptions = async () => {
const response = await SubscriptionsService.getSubscriptions(); const response = await SubscriptionsService.getSubscriptions();
console.log("getSubscriptions");
console.log(response.data);
return response.data; return response.data;
}; };

Wyświetl plik

@ -2,7 +2,6 @@ import { http } from "../utils";
// import axios from "axios"; // import axios from "axios";
const API = process.env.NEXT_PUBLIC_MOONSTREAM_API_URL; const API = process.env.NEXT_PUBLIC_MOONSTREAM_API_URL;
console.log(API);
export const getStream = ({ searchTerm, limit, offset, isContent }) => export const getStream = ({ searchTerm, limit, offset, isContent }) =>
http({ http({
@ -49,7 +48,6 @@ export const deleteJournal = (id) => () =>
export const createSubscription = export const createSubscription =
() => () =>
({ address, type, label, color }) => { ({ address, type, label, color }) => {
console.log("createSubscription: ", address, type, label);
const data = new FormData(); const data = new FormData();
data.append("address", address); data.append("address", address);
data.append("subscription_type_id", type); data.append("subscription_type_id", type);