sfc-utils 1.3.68 → 1.3.69
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/components/ogpubdate.mjs
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
moddateString
|
|
6
6
|
} from './helpers/datehelpers.mjs'
|
|
7
7
|
|
|
8
|
-
const OgPubDate = (
|
|
8
|
+
const OgPubDate = () => {
|
|
9
9
|
return (
|
|
10
10
|
<>
|
|
11
11
|
{moddateString &&
|
|
12
|
-
<p
|
|
13
|
-
}
|
|
12
|
+
<p className="mt-md og-pub-date">Originally published on {pubdateString}</p>
|
|
13
|
+
}
|
|
14
14
|
</>
|
|
15
15
|
)
|
|
16
16
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import Credits from './credits'
|
|
3
3
|
import CreditLine from './creditline'
|
|
4
|
+
import OgPubDate from '../../../../components/ogpubdate.mjs'
|
|
4
5
|
import * as creditssectionStyles from '../../styles/modules/creditssection.module.less'
|
|
5
6
|
let rawCredits;
|
|
6
7
|
try {
|
|
@@ -27,6 +28,7 @@ const CreditsSection = () => {
|
|
|
27
28
|
}
|
|
28
29
|
return (
|
|
29
30
|
<section aria-label="Credits" className={creditssectionStyles.section}>
|
|
31
|
+
<OgPubDate/>
|
|
30
32
|
<h4 className={creditssectionStyles.hed}>Credits</h4>
|
|
31
33
|
{Object.keys(creditObj).map((key) => (
|
|
32
34
|
<Credits type={key} key={key}>
|
package/package.json
CHANGED