Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription updates #1775

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading