umwd-components 0.1.430 → 0.1.431

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": "umwd-components",
3
- "version": "0.1.430",
3
+ "version": "0.1.431",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -287,13 +287,13 @@ function CheckoutForm({ shopUrl = "/shop" }: CheckoutFormProps) {
287
287
  {/* No product warning, TODO use repeatable component, something we already made '??' */}
288
288
  {cartIsEmpty && activeStep != 4 && (
289
289
  <Grid item xs={12}>
290
- <Box sx={{ color: "red", border: "2px solid red", p: 2 }}>
290
+ <Alert severity="error">
291
291
  <Typography variant="h5">No products in cart</Typography>
292
292
  <Typography variant="body1">
293
293
  There are no products selected to order, please visit the shop
294
294
  befor continuing
295
295
  </Typography>
296
- </Box>
296
+ </Alert>
297
297
  </Grid>
298
298
  )}
299
299
 
@@ -47,9 +47,9 @@ function Step3({
47
47
  <Address data={user.customer_profile.company_address} />
48
48
  )}
49
49
  {user?.customer_profile?.delivery_address != undefined && (
50
- <Stack direction={"row"} spacing={2}>
50
+ <Stack direction={"row"} spacing={2} alignItems={"center"}>
51
51
  <Checkbox
52
- checked={prefersDeliveryAddress}
52
+ checked={!prefersDeliveryAddress}
53
53
  onChange={togglePrefersDeliveryAddress}
54
54
  />
55
55
  <Typography>Use company address instead</Typography>
@@ -78,9 +78,9 @@ function Step3({
78
78
  <Address data={user.customer_profile.company_address} />
79
79
  )}
80
80
  {user?.customer_profile?.billing_address != undefined && (
81
- <Stack direction={"row"} spacing={2}>
81
+ <Stack direction={"row"} spacing={2} alignItems={"center"}>
82
82
  <Checkbox
83
- checked={prefersBillingAddress}
83
+ checked={!prefersBillingAddress}
84
84
  onChange={togglePrefersBillingAddress}
85
85
  />
86
86
  <Typography>Use company address instead</Typography>