Skip to content

Commit

Permalink
correct types for markdown viewer label react 18 (#2408)
Browse files Browse the repository at this point in the history
* correct types for markdown viewer label react 18

FC no longer has 'children' as implicit, so they must be defined separately

* changeset

Co-authored-by: Josh Black <joshblack@github.com>
  • Loading branch information
mattcosta7 and joshblack committed Oct 6, 2022
1 parent 2e7a970 commit c639acb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-years-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

fix react 18 typing for MarkdownEditor.Label
1 change: 1 addition & 0 deletions src/drafts/MarkdownEditor/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {MarkdownEditorContext} from './_MarkdownEditorContext'

type LabelProps = SxProp & {
visuallyHidden?: boolean
children?: React.ReactNode
}

// ref is not forwarded because InputLabel does not (yet) support it
Expand Down

0 comments on commit c639acb

Please sign in to comment.