@thecb/components 10.4.0-beta.3 → 10.4.0-beta.4

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.0-beta.3",
3
+ "version": "10.4.0-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -153,15 +153,7 @@ const PaymentDetailsActions = ({
153
153
  isInCustomerManagement ? noop : () => handleClick(obligations)
154
154
  }
155
155
  text="Pay Now"
156
- variant={
157
- isMobile
158
- ? isInCustomerManagement
159
- ? "disabledSmallSecondary"
160
- : "smallSecondary"
161
- : isInCustomerManagement
162
- ? "disabledSecondary"
163
- : "secondary"
164
- }
156
+ variant={isMobile ? "smallSecondary" : "secondary"}
165
157
  dataQa="Pay Now"
166
158
  disabled={isInCustomerManagement}
167
159
  />
@@ -172,7 +164,9 @@ const PaymentDetailsActions = ({
172
164
  <Box padding="8px 0 0" width="100%">
173
165
  <ButtonWithAction
174
166
  isLoading={isLoading}
175
- action={() => handleClick(obligations)}
167
+ action={() =>
168
+ isInCustomerManagement ? noop : () => handleClick(obligations)
169
+ }
176
170
  text="Pay Now"
177
171
  variant={isMobile ? "smallSecondary" : "secondary"}
178
172
  dataQa="Pay Now"