Skip to content

Commit a9a4b89

Browse files
authored
Merge pull request #12086 from github/repo-sync
repo sync
2 parents 6011832 + 69e0d99 commit a9a4b89

3 files changed

Lines changed: 132 additions & 53 deletions

File tree

package-lock.json

Lines changed: 128 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"eslint-config-prettier": "^8.3.0",
139139
"eslint-config-standard": "^16.0.3",
140140
"eslint-plugin-import": "^2.25.3",
141-
"eslint-plugin-jsx-a11y": "^6.4.1",
141+
"eslint-plugin-jsx-a11y": "^6.5.1",
142142
"eslint-plugin-node": "^11.1.0",
143143
"eslint-plugin-promise": "^5.1.1",
144144
"event-to-promise": "^0.8.0",
@@ -162,7 +162,7 @@
162162
"mock-express-response": "^0.3.0",
163163
"mockdate": "^3.0.5",
164164
"nock": "^13.2.1",
165-
"nodemon": "^2.0.14",
165+
"nodemon": "^2.0.15",
166166
"npm-merge-driver-install": "^2.0.1",
167167
"object-hash": "^2.2.0",
168168
"postcss": "^8.3.11",

pages/storybook.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function displayProps(props: Object) {
179179
const xprops = Object.fromEntries(
180180
Object.entries(props).map(([key, value]) => [
181181
key,
182-
key === 'children' ? ReactDomServer.renderToString(value) : value,
182+
React.isValidElement(value) ? ReactDomServer.renderToString(value) : value,
183183
])
184184
)
185185
return JSON.stringify(xprops, null, 2)
@@ -193,7 +193,7 @@ export default function Storybook() {
193193
<div className="my-4 d-lg-flex flex-items-start">
194194
<nav className="menu col-12 col-lg-3 mr-4 color-bg-subtle position-lg-sticky top-0">
195195
{stories.map(({ name }) => (
196-
<a className="menu-item" href={`#${name}`}>
196+
<a key={name} className="menu-item" href={`#${name}`}>
197197
{name}
198198
</a>
199199
))}

0 commit comments

Comments
 (0)