Update documentation for GitHub AE's December 2021 release (#23405)
This commit is contained in:
@@ -16,9 +16,7 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
|
||||
}
|
||||
}, [onScreen])
|
||||
|
||||
const bannerText = patch.currentWeek
|
||||
? t('banner_text_current')
|
||||
: `${t('banner_text_past')} ${patch.friendlyDate}.`
|
||||
const bannerText = t('banner_text')
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -45,7 +43,7 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
|
||||
<button className="js-print btn-link ml-3 text-small text-bold">Print</button>
|
||||
</div>
|
||||
<p className="color-fg-muted mt-1">
|
||||
{patch.friendlyDate} - {bannerText}
|
||||
{bannerText} {patch.friendlyDate}.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ const CollapsibleReleaseSection = ({
|
||||
{release.version}
|
||||
<div className="d-flex">
|
||||
<span className="color-fg-muted text-small text-normal mr-1">
|
||||
{release.patches.length} releases
|
||||
{release.patches.length} {release.patches.length === 1 ? 'release' : 'releases'}
|
||||
</span>
|
||||
<ChevronDownIcon className={isOpen ? 'rotate-180' : ''} />
|
||||
</div>
|
||||
|
||||
@@ -166,7 +166,7 @@ const CollapsibleReleaseSection = ({
|
||||
{release.version}
|
||||
<div className="d-flex">
|
||||
<span className="color-fg-muted text-small text-normal mr-1">
|
||||
{release.patches.length} releases
|
||||
{release.patches.length} {release.patches.length === 1 ? 'release' : 'releases'}
|
||||
</span>
|
||||
<ChevronDownIcon className={isOpen ? 'rotate-180' : ''} />
|
||||
</div>
|
||||
|
||||
@@ -93,11 +93,7 @@ export function PatchNotes({ patch, withReleaseNoteLabel }: Props) {
|
||||
</h4>
|
||||
{item.notes.map((note) => {
|
||||
return (
|
||||
<li
|
||||
key={note}
|
||||
className={cx(!withReleaseNoteLabel && 'list-style-none', 'f4')}
|
||||
dangerouslySetInnerHTML={{ __html: note }}
|
||||
/>
|
||||
<li key={note} className="f4" dangerouslySetInnerHTML={{ __html: note }} />
|
||||
)
|
||||
})}
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user