@graphcommerce/next-ui 6.2.0-canary.21 → 6.2.0-canary.22

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.
@@ -8,7 +8,7 @@ import { useDateTimeFormat } from '../../hooks'
8
8
  export type BlogListItemProps = {
9
9
  asset: React.ReactNode
10
10
  url: string
11
- date: string
11
+ date: string | undefined
12
12
  title: string
13
13
  sx?: SxProps<Theme>
14
14
  }
@@ -57,18 +57,20 @@ export function BlogListItem(props: BlogListItemProps) {
57
57
  </Box>
58
58
  </Link>
59
59
 
60
- <Box
61
- component='time'
62
- className={classes.date}
63
- dateTime={date}
64
- sx={(theme) => ({
65
- display: 'inline-block',
66
- textDecoration: 'none',
67
- color: theme.palette.text.secondary,
68
- })}
69
- >
70
- {formatter.format(new Date(date))}
71
- </Box>
60
+ {date && (
61
+ <Box
62
+ component='time'
63
+ className={classes.date}
64
+ dateTime={date}
65
+ sx={(theme) => ({
66
+ display: 'inline-block',
67
+ textDecoration: 'none',
68
+ color: theme.palette.text.secondary,
69
+ })}
70
+ >
71
+ {formatter.format(new Date(date))}
72
+ </Box>
73
+ )}
72
74
 
73
75
  <Link href={`/${url}`} className={classes.title} color='inherit' underline='hover'>
74
76
  <Typography component='h2' variant='h4'>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0-canary.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1939](https://github.com/graphcommerce-org/graphcommerce/pull/1939) [`0cdccf681`](https://github.com/graphcommerce-org/graphcommerce/commit/0cdccf6817d6a769f59cccb68b1b1b8b4405cbd0) - Make blogListItem date prop optional ([@JoshuaS98](https://github.com/JoshuaS98))
8
+
3
9
  ## 6.2.0-canary.21
4
10
 
5
11
  ## 6.2.0-canary.20
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "6.2.0-canary.21",
5
+ "version": "6.2.0-canary.22",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -18,18 +18,18 @@
18
18
  "@emotion/react": "^11.10.6",
19
19
  "@emotion/server": "^11.4.0",
20
20
  "@emotion/styled": "^11.10.6",
21
- "@graphcommerce/framer-next-pages": "6.2.0-canary.21",
22
- "@graphcommerce/framer-scroller": "6.2.0-canary.21",
23
- "@graphcommerce/framer-utils": "6.2.0-canary.21",
24
- "@graphcommerce/image": "6.2.0-canary.21",
21
+ "@graphcommerce/framer-next-pages": "6.2.0-canary.22",
22
+ "@graphcommerce/framer-scroller": "6.2.0-canary.22",
23
+ "@graphcommerce/framer-utils": "6.2.0-canary.22",
24
+ "@graphcommerce/image": "6.2.0-canary.22",
25
25
  "cookie": "^0.5.0",
26
26
  "react-is": "^18.2.0",
27
27
  "schema-dts": "^1.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@graphcommerce/eslint-config-pwa": "6.2.0-canary.21",
31
- "@graphcommerce/prettier-config-pwa": "6.2.0-canary.21",
32
- "@graphcommerce/typescript-config-pwa": "6.2.0-canary.21",
30
+ "@graphcommerce/eslint-config-pwa": "6.2.0-canary.22",
31
+ "@graphcommerce/prettier-config-pwa": "6.2.0-canary.22",
32
+ "@graphcommerce/typescript-config-pwa": "6.2.0-canary.22",
33
33
  "@types/cookie": "^0.5.1",
34
34
  "@types/react-is": "^17.0.3",
35
35
  "typescript": "4.9.5"