Skip to content

Commit 7e32d58

Browse files
authored
Merge branch 'main' into refactor-actionlist-item-as-button
2 parents 6d74cbf + 1665a1b commit 7e32d58

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

contributor-docs/adrs/adr-010-behavior-isolation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Primer React's [recent addition of the Relative Time component](https://github.c
8484

8585
```typescript
8686
const root = (typeof globalThis !== 'undefined' ? globalThis : window) as typeof window
87-
const HTMLElement = root.HTMLElement || (null as unknown as typeof window['HTMLElement'])
87+
const HTMLElement = root.HTMLElement || (null as unknown as (typeof window)['HTMLElement'])
8888
```
8989

9090
These lines could also be added to the global context, to avoid adding it to each element.

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
"micromark-extension-frontmatter": "1.0.0",
230230
"micromark-extension-mdxjs": "1.0.1",
231231
"postcss-custom-properties-fallback": "^1.0.2",
232-
"prettier": "2.8.1",
232+
"prettier": "2.8.8",
233233
"react": "18.2.0",
234234
"react-dnd": "14.0.4",
235235
"react-dnd-html5-backend": "14.0.2",

src/ActionList/ActionList.features.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export const InsideOverlay = () => {
418418
export const GroupWithSubtleTitle = () => {
419419
const [assignees, setAssignees] = React.useState(users.slice(0, 1))
420420

421-
const toggleAssignee = (assignee: typeof users[number]) => {
421+
const toggleAssignee = (assignee: (typeof users)[number]) => {
422422
const assigneeIndex = assignees.findIndex(a => a.login === assignee.login)
423423

424424
if (assigneeIndex === -1) setAssignees([...assignees, assignee])
@@ -450,7 +450,7 @@ export const GroupWithSubtleTitle = () => {
450450
export const GroupWithFilledTitle = () => {
451451
const [assignees, setAssignees] = React.useState(users.slice(0, 1))
452452

453-
const toggleAssignee = (assignee: typeof users[number]) => {
453+
const toggleAssignee = (assignee: (typeof users)[number]) => {
454454
const assigneeIndex = assignees.findIndex(a => a.login === assignee.login)
455455

456456
if (assigneeIndex === -1) setAssignees([...assignees, assignee])

src/ActionMenu/ActionMenu.examples.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const GroupsAndDescriptions = () => {
2424
{name: 'FY23 - Q2', due: 'December 30, 2022', progress: 0},
2525
]
2626

27-
const [selectedMilestone, setSelectedMilestone] = React.useState<typeof milestones[0] | undefined>()
27+
const [selectedMilestone, setSelectedMilestone] = React.useState<(typeof milestones)[0] | undefined>()
2828

2929
return (
3030
<ActionMenu open>
@@ -241,7 +241,7 @@ export const MixedSelection = () => {
241241
export const MultipleSections = () => {
242242
const items = [{name: 'Show code folding buttons'}, {name: 'Wrap lines'}, {name: 'Center content'}]
243243

244-
const [selectedMilestone, setSelectedMilestone] = React.useState<typeof items[0] | undefined>()
244+
const [selectedMilestone, setSelectedMilestone] = React.useState<(typeof items)[0] | undefined>()
245245

246246
return (
247247
<ActionMenu open>

0 commit comments

Comments
 (0)