diff --git a/frontend/pages/subscriptions.js b/frontend/pages/subscriptions.js index 54450d7d..a2afea4f 100644 --- a/frontend/pages/subscriptions.js +++ b/frontend/pages/subscriptions.js @@ -100,7 +100,7 @@ const Subscriptions = () => { Add new - + )} diff --git a/frontend/sample.env b/frontend/sample.env index 93aff9b8..e295fc84 100644 --- a/frontend/sample.env +++ b/frontend/sample.env @@ -1,7 +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 c1add3d9..2f068188 100644 --- a/frontend/src/components/NewSubscription.js +++ b/frontend/src/components/NewSubscription.js @@ -44,6 +44,7 @@ const NewSubscription = ({ isFreeOption, onClose }) => { type: isFreeOption ? "free" : radioState, }); }; + return (
Subscribe to a new address @@ -84,9 +85,9 @@ const NewSubscription = ({ isFreeOption, onClose }) => { - {typesCache.data.map((type) => { + {typesCache.data.subscriptions.map((type) => { const radio = getRadioProps({ - value: type.subscription_type, + value: type.id, isDisabled: !type.active || (isFreeOption && @@ -94,7 +95,7 @@ const NewSubscription = ({ isFreeOption, onClose }) => { }); if (!type.subscription_plan_id) return ""; return ( - + {type.name} ); @@ -102,6 +103,7 @@ const NewSubscription = ({ isFreeOption, onClose }) => { +