diff --git a/package-lock.json b/package-lock.json
index 2af43d71..d9035f4b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,7 +18,7 @@
"lodash": "^4.17.15",
"m3u8-parser": "^4.7.0",
"mobx": "^6.5.0",
- "mobx-react": "^7.3.0",
+ "mobx-react-lite": "^3.4.0",
"oidc-client": "^1.11.5",
"react": "^17.0.2",
"react-datepicker": "^3.1.3",
@@ -22974,41 +22974,17 @@
"url": "https://opencollective.com/mobx"
}
},
- "node_modules/mobx-react": {
- "version": "7.3.0",
- "resolved": "https://registry.npmjs.org/mobx-react/-/mobx-react-7.3.0.tgz",
- "integrity": "sha512-RGEcwZokopqyJE5JPwXKB9FWMSqFM9NJVO2QPI+z6laJTJeBHqvPicjnKgY5mvihxTeXB1+72TnooqUePeGV1g==",
- "dependencies": {
- "mobx-react-lite": "^3.3.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/mobx"
- },
- "peerDependencies": {
- "mobx": "^6.1.0",
- "react": "^16.8.0 || ^17"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- },
- "react-native": {
- "optional": true
- }
- }
- },
"node_modules/mobx-react-lite": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/mobx-react-lite/-/mobx-react-lite-3.3.0.tgz",
- "integrity": "sha512-U/kMSFtV/bNVgY01FuiGWpRkaQVHozBq5CEBZltFvPt4FcV111hEWkgwqVg9GPPZSEuEdV438PEz8mk8mKpYlA==",
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/mobx-react-lite/-/mobx-react-lite-3.4.0.tgz",
+ "integrity": "sha512-bRuZp3C0itgLKHu/VNxi66DN/XVkQG7xtoBVWxpvC5FhAqbOCP21+nPhULjnzEqd7xBMybp6KwytdUpZKEgpIQ==",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/mobx"
},
"peerDependencies": {
"mobx": "^6.1.0",
- "react": "^16.8.0 || ^17"
+ "react": "^16.8.0 || ^17 || ^18"
},
"peerDependenciesMeta": {
"react-dom": {
@@ -50839,18 +50815,10 @@
"resolved": "https://registry.npmjs.org/mobx/-/mobx-6.5.0.tgz",
"integrity": "sha512-pHZ/cySF00FVENDWIDzJyoObFahK6Eg4d0papqm6d7yMkxWTZ/S/csqJX1A3PsYy4t5k3z2QnlwuCfMW5lSEwA=="
},
- "mobx-react": {
- "version": "7.3.0",
- "resolved": "https://registry.npmjs.org/mobx-react/-/mobx-react-7.3.0.tgz",
- "integrity": "sha512-RGEcwZokopqyJE5JPwXKB9FWMSqFM9NJVO2QPI+z6laJTJeBHqvPicjnKgY5mvihxTeXB1+72TnooqUePeGV1g==",
- "requires": {
- "mobx-react-lite": "^3.3.0"
- }
- },
"mobx-react-lite": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/mobx-react-lite/-/mobx-react-lite-3.3.0.tgz",
- "integrity": "sha512-U/kMSFtV/bNVgY01FuiGWpRkaQVHozBq5CEBZltFvPt4FcV111hEWkgwqVg9GPPZSEuEdV438PEz8mk8mKpYlA==",
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/mobx-react-lite/-/mobx-react-lite-3.4.0.tgz",
+ "integrity": "sha512-bRuZp3C0itgLKHu/VNxi66DN/XVkQG7xtoBVWxpvC5FhAqbOCP21+nPhULjnzEqd7xBMybp6KwytdUpZKEgpIQ==",
"requires": {}
},
"move-concurrently": {
diff --git a/package.json b/package.json
index 18c11fc5..39597514 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"lodash": "^4.17.15",
"m3u8-parser": "^4.7.0",
"mobx": "^6.5.0",
- "mobx-react": "^7.3.0",
+ "mobx-react-lite": "^3.4.0",
"oidc-client": "^1.11.5",
"react": "^17.0.2",
"react-datepicker": "^3.1.3",
diff --git a/src/config/lexics/payment.tsx b/src/config/lexics/payment.tsx
index d7d33afd..79f6124b 100644
--- a/src/config/lexics/payment.tsx
+++ b/src/config/lexics/payment.tsx
@@ -1,8 +1,12 @@
export const paymentLexics = {
add_card: 8313,
address: 15203,
+ after_canceling: 18191,
+ and_month: 18186,
billing_address: 15489,
+ cancel_sub: 12671,
card_holder_name: 2021,
+ change_card: 14018,
city: 15206,
country: 835,
error_address_latin_letters: 15758,
@@ -13,9 +17,17 @@ export const paymentLexics = {
error_empty_country: 15753,
error_empty_name: 15290,
error_payment_unsuccessful: 14446,
+ if_you_cancel: 18189,
+ next_payment: 18183,
payment_date: 15603,
payment_method: 2010,
+ save_sub: 18190,
+ still_cancel: 2646,
+ sub_not_renewed: 15060,
subscription_plan: 18182,
sum: 838,
+ unsubscribe: 18188,
+ using_payment: 18187,
watch_match: 18199,
+ will_automatically: 18185,
}
diff --git a/src/config/procedures.tsx b/src/config/procedures.tsx
index b233904e..97997854 100644
--- a/src/config/procedures.tsx
+++ b/src/config/procedures.tsx
@@ -21,6 +21,7 @@ export const PROCEDURES = {
get_user_match_second: 'get_user_match_second',
get_user_payments: 'get_user_payments',
get_user_preferences: 'get_user_preferences',
+ get_user_subscribes: 'get_user_subscribes',
get_user_subscriptions: 'get_user_subscriptions',
landing_get_match_info: 'landing_get_match_info',
lst_c_country: 'lst_c_country',
diff --git a/src/features/BuyMatchPopup/components/CardStep/index.tsx b/src/features/BuyMatchPopup/components/CardStep/index.tsx
index f446166a..62928b5a 100644
--- a/src/features/BuyMatchPopup/components/CardStep/index.tsx
+++ b/src/features/BuyMatchPopup/components/CardStep/index.tsx
@@ -21,7 +21,12 @@ import {
ButtonPrevious,
} from '../../styled'
-export const CardStep = () => {
+type CardStepType = {
+ btnName?: string,
+ title?: string,
+}
+
+export const CardStep = ({ btnName, title }: CardStepType) => {
const { cards } = useCardsStore()
const { close, goBack } = useBuyMatchPopupStore()
@@ -34,7 +39,7 @@ export const CardStep = () => {
-
+
@@ -48,7 +53,7 @@ export const CardStep = () => {
inputsBackground='rgba(255, 255, 255, 0.1)'
>