@thecb/components 5.8.2-beta.0 → 5.8.2-beta.1

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": "5.8.2-beta.0",
3
+ "version": "5.8.2-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -94,37 +94,39 @@ const AutopayModal = ({
94
94
  );
95
95
  }
96
96
  case "link": {
97
- <Box
98
- padding="0"
99
- onClick={() => {
100
- toggleModal(true);
101
- }}
102
- hoverStyles={hoverStyles}
103
- activeStyles={activeStyles}
104
- extraStyles={defaultStyles}
105
- >
106
- <Cluster
107
- justify={isMobile ? "flex-start" : "flex-end"}
108
- align="center"
97
+ return (
98
+ <Box
99
+ padding="0"
100
+ onClick={() => {
101
+ toggleModal(true);
102
+ }}
103
+ hoverStyles={hoverStyles}
104
+ activeStyles={activeStyles}
105
+ extraStyles={defaultStyles}
109
106
  >
110
- <AutopayOnIcon />
111
- <Text
112
- variant="pS"
113
- onClick={() => toggleModal(true)}
114
- onKeyPress={e => {
115
- e.key === "Enter" && toggleModal(true);
116
- }}
117
- tabIndex="0"
118
- dataQa={`${planType} On`}
119
- color={SEA_GREEN}
120
- weight={themeValues.fontWeight}
121
- hoverStyles={themeValues.modalLinkHoverFocus}
122
- extraStyles={`padding-left: 0.25rem;`}
107
+ <Cluster
108
+ justify={isMobile ? "flex-start" : "flex-end"}
109
+ align="center"
123
110
  >
124
- {`${planType} ${nextAutopayDate}`}
125
- </Text>
126
- </Cluster>
127
- </Box>;
111
+ <AutopayOnIcon />
112
+ <Text
113
+ variant="pS"
114
+ onClick={() => toggleModal(true)}
115
+ onKeyPress={e => {
116
+ e.key === "Enter" && toggleModal(true);
117
+ }}
118
+ tabIndex="0"
119
+ dataQa={`${planType} On`}
120
+ color={SEA_GREEN}
121
+ weight={themeValues.fontWeight}
122
+ hoverStyles={themeValues.modalLinkHoverFocus}
123
+ extraStyles={`padding-left: 0.25rem;`}
124
+ >
125
+ {`${planType} ${nextAutopayDate}`}
126
+ </Text>
127
+ </Cluster>
128
+ </Box>
129
+ );
128
130
  }
129
131
  }
130
132
  };