From 8f9d34e419210cf6b2a7253b19c7ae055fb90a39 Mon Sep 17 00:00:00 2001 From: Martin Bedouret Date: Fri, 15 Nov 2024 18:01:57 -0300 Subject: [PATCH] Subscription updates --- src/components/Account/Activate/Activate.css | 6 +++++- .../SubscriptionProvider/SubscriptionProvider.actions.js | 4 ++-- .../SubscriptionProvider/SubscriptionProvider.constants.js | 7 +++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/Account/Activate/Activate.css b/src/components/Account/Activate/Activate.css index 96244359c..92837b541 100644 --- a/src/components/Account/Activate/Activate.css +++ b/src/components/Account/Activate/Activate.css @@ -6,7 +6,11 @@ justify-content: center; align-items: center; color: #eceff1; - background: linear-gradient(to right, rgb(121, 22, 254), rgb(172, 47, 138)); + background-color: linear-gradient( + to right, + rgb(45, 22, 254), + rgb(141, 92, 255) + ); } .Activate_home { diff --git a/src/providers/SubscriptionProvider/SubscriptionProvider.actions.js b/src/providers/SubscriptionProvider/SubscriptionProvider.actions.js index d69e98ad7..9964730c6 100644 --- a/src/providers/SubscriptionProvider/SubscriptionProvider.actions.js +++ b/src/providers/SubscriptionProvider/SubscriptionProvider.actions.js @@ -14,7 +14,8 @@ import { PROCCESING, SHOW_LOGIN_REQUIRED, HIDE_LOGIN_REQUIRED, - UNVERIFIED + UNVERIFIED, + DAYS_TO_TRY } from './SubscriptionProvider.constants'; import API from '../../api'; import { isLogged } from '../../components/App/App.selectors'; @@ -60,7 +61,6 @@ export function updateIsOnTrialPeriod() { if (!createdAt) return false; //this case are already created users const createdAtDate = new Date(createdAt); const actualDate = new Date(); - const DAYS_TO_TRY = 30; const tryLimitDate = createdAtDate.setDate( createdAtDate.getDate() + DAYS_TO_TRY ); diff --git a/src/providers/SubscriptionProvider/SubscriptionProvider.constants.js b/src/providers/SubscriptionProvider/SubscriptionProvider.constants.js index d66896d9d..3cf663254 100644 --- a/src/providers/SubscriptionProvider/SubscriptionProvider.constants.js +++ b/src/providers/SubscriptionProvider/SubscriptionProvider.constants.js @@ -20,11 +20,16 @@ export const EXPIRED = 'expired'; export const ON_HOLD = 'on_hold'; export const UNVERIFIED = 'unverified'; +export const DAYS_TO_TRY = 15; + export const REQUIRING_PREMIUM_COUNTRIES = [ 'AT', 'AU', 'BE', + 'BH', + 'BM', 'CA', + 'CL', 'DK', 'KY', 'CZ', @@ -40,6 +45,8 @@ export const REQUIRING_PREMIUM_COUNTRIES = [ 'NZ', 'NO', 'PL', + 'QA', + 'SA', 'SK', 'SI', 'SE',