pcm-shared-components 0.0.227 → 0.0.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,6 +15,7 @@ import { createTheme, useTheme } from '@mui/material/styles';
|
|
|
15
15
|
|
|
16
16
|
export const NEW_COMPONENT = props => {
|
|
17
17
|
const {
|
|
18
|
+
i18next,
|
|
18
19
|
theme
|
|
19
20
|
} = props;
|
|
20
21
|
const compTheme = theme ? theme : useTheme();
|
|
@@ -25,9 +26,13 @@ export const NEW_COMPONENT = props => {
|
|
|
25
26
|
};
|
|
26
27
|
export default NEW_COMPONENT;
|
|
27
28
|
NEW_COMPONENT.defaultProps = {
|
|
29
|
+
i18next: undefined,
|
|
28
30
|
theme: undefined
|
|
29
31
|
};
|
|
30
32
|
NEW_COMPONENT.propTypes = {
|
|
33
|
+
/** The i18next needs to be passed in by the component or else they will be blank */
|
|
34
|
+
i18next: PropTypes.any,
|
|
35
|
+
|
|
31
36
|
/** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used*/
|
|
32
37
|
theme: PropTypes.object
|
|
33
38
|
};
|
|
@@ -9,7 +9,6 @@ import PriceToggleButton from './components/PriceToggleButton';
|
|
|
9
9
|
import Icon from '@mdi/react';
|
|
10
10
|
import { mdiRocket, mdiShimmer, mdiFire, mdiTorch } from '@mdi/js';
|
|
11
11
|
import { Button } from '@mui/material';
|
|
12
|
-
import i18next from 'i18next';
|
|
13
12
|
const platformPricingIcons = [mdiShimmer, mdiFire, mdiTorch];
|
|
14
13
|
/**
|
|
15
14
|
* ## Importing the component in your project
|
|
@@ -28,6 +27,7 @@ export const PlatformPaymentPlans = props => {
|
|
|
28
27
|
platformPricingModels,
|
|
29
28
|
onClickPlanSelection,
|
|
30
29
|
saveYearlyImgPath,
|
|
30
|
+
i18next,
|
|
31
31
|
theme
|
|
32
32
|
} = props;
|
|
33
33
|
console.log('debug Platform payment plans:', props);
|
|
@@ -260,6 +260,7 @@ PlatformPaymentPlans.defaultProps = {
|
|
|
260
260
|
platformPricingModels: [],
|
|
261
261
|
onClickPlanSelection: () => {},
|
|
262
262
|
saveYearlyImgPath: undefined,
|
|
263
|
+
i18next: undefined,
|
|
263
264
|
theme: undefined
|
|
264
265
|
};
|
|
265
266
|
PlatformPaymentPlans.propTypes = {
|
|
@@ -275,6 +276,9 @@ PlatformPaymentPlans.propTypes = {
|
|
|
275
276
|
/** Callback when a plan is selected. Returns the platform pricing model id. */
|
|
276
277
|
onClickPlanSelection: PropTypes.func,
|
|
277
278
|
|
|
279
|
+
/** The i18next needs to be passed in by the component or else they will be blank */
|
|
280
|
+
i18next: PropTypes.any,
|
|
281
|
+
|
|
278
282
|
/** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used */
|
|
279
283
|
theme: PropTypes.object
|
|
280
284
|
};
|