@thecb/components 10.4.5-beta.2 → 10.4.5-beta.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.4.5-beta.2",
3
+ "version": "10.4.5-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -53,26 +53,10 @@ const renderDisabledContent = ({ children }) => (
53
53
  </Box>
54
54
  );
55
55
 
56
- const renderContent = ({
57
- isLink,
58
- destination,
59
- dataQa,
60
- isDisabled,
61
- children,
62
- action
63
- }) =>
56
+ const renderContent = ({ isLink, destination, dataQa, children, action }) =>
64
57
  isLink ? (
65
- <Link
66
- to={destination}
67
- dataQa={dataQa}
68
- disabled={isDisabled}
69
- style={{ textDecoration: "none" }}
70
- >
71
- <Box
72
- padding="0"
73
- minHeight="100%"
74
- extraStyles={isDisabled ? "cursor: default;" : "cursor: pointer;"}
75
- >
58
+ <Link to={destination} data-qa={dataQa} style={{ textDecoration: "none" }}>
59
+ <Box padding="0" minHeight="100%" extraStyles="cursor: pointer;">
76
60
  {children}
77
61
  </Box>
78
62
  </Link>
@@ -103,8 +87,7 @@ const PlaceholderContentWrapper = ({
103
87
  action,
104
88
  isLink,
105
89
  destination,
106
- dataQa,
107
- isDisabled
90
+ dataQa
108
91
  });
109
92
 
110
93
  const Placeholder = ({