pcm-shared-components 0.0.229 → 0.0.230

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.
@@ -11,7 +11,7 @@ import PriceToggleButton from './components/PriceToggleButton';
11
11
  import Icon from '@mdi/react';
12
12
  import { mdiRocket, mdiShimmer, mdiFire, mdiTorch } from '@mdi/js';
13
13
  import { Button } from '@mui/material';
14
- import { useTranslation } from 'react-i18next';
14
+ import { useTranslation, withTranslation } from 'react-i18next';
15
15
  const platformPricingIcons = [mdiShimmer, mdiFire, mdiTorch];
16
16
  /**
17
17
  * ## Importing the component in your project
@@ -30,11 +30,10 @@ export const PlatformPaymentPlans = props => {
30
30
  platformPricingModels,
31
31
  onClickPlanSelection,
32
32
  saveYearlyImgPath,
33
- theme
34
- } = props;
35
- const {
33
+ theme,
36
34
  t
37
- } = useTranslation();
35
+ } = props; // const { t} = useTranslation();
36
+
38
37
  const planTypeDescriptions = [t('platform_plan_feature.plan_type_descriptions.free'), t('platform_plan_feature.plan_type_descriptions.standard'), t('platform_plan_feature.plan_type_descriptions.premium')];
39
38
  const compTheme = theme ? theme : useTheme();
40
39
  const defaultTheme = createTheme(compTheme); //---------------------------------------------------
@@ -286,7 +285,7 @@ export const PlatformPaymentPlans = props => {
286
285
  }, model))))))
287
286
  );
288
287
  };
289
- export default PlatformPaymentPlans;
288
+ export default withTranslation()(PlatformPaymentPlans);
290
289
  PlatformPaymentPlans.defaultProps = {
291
290
  platformPlanFeatures: [],
292
291
  platformPricingModels: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.229",
3
+ "version": "0.0.230",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {