pcm-shared-components 0.0.246 → 0.0.248
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { ThemeProvider } from '@mui/system';
|
|
3
4
|
import { createTheme, useTheme } from '@mui/material/styles';
|
|
@@ -30,7 +31,7 @@ export const PlatformPlanTitles = props => {
|
|
|
30
31
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
31
32
|
className: "flex"
|
|
32
33
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
33
|
-
path: platformPricingIcons[platform_plan_type_id - 1],
|
|
34
|
+
path: platformPricingIcons[Number(platform_plan_type_id) - 1],
|
|
34
35
|
className: "m-auto shadow-1 rounded-full p-6",
|
|
35
36
|
style: {
|
|
36
37
|
color: color,
|
|
@@ -57,7 +58,7 @@ PlatformPlanTitles.defaultProps = {
|
|
|
57
58
|
};
|
|
58
59
|
PlatformPlanTitles.propTypes = {
|
|
59
60
|
/** This is the platform plan type id, we should only ever have three types 1=free, 2=standard, 3=premium*/
|
|
60
|
-
platform_plan_type_id: PropTypes.number,
|
|
61
|
+
platform_plan_type_id: PropTypes.oneOf(PropTypes.string | PropTypes.number),
|
|
61
62
|
|
|
62
63
|
/** This is the color of the plan*/
|
|
63
64
|
color: PropTypes.string,
|