Skip to content

Commit

Permalink
Merge pull request #1775 from cboard-org/subscr-updates
Browse files Browse the repository at this point in the history
Subscription updates
  • Loading branch information
martinbedouret authored Nov 15, 2024
2 parents c566874 + 8f9d34e commit d479857
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/Account/Activate/Activate.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -40,6 +45,8 @@ export const REQUIRING_PREMIUM_COUNTRIES = [
'NZ',
'NO',
'PL',
'QA',
'SA',
'SK',
'SI',
'SE',
Expand Down

0 comments on commit d479857

Please sign in to comment.