Skip to content

Commit

Permalink
chore(deps): update dependency @types/react to v18.2.61 (#681)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Mar 6, 2024
1 parent 24140ae commit a0e0146
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@testing-library/react": "14.2.1",
"@types/hast": "3.0.4",
"@types/lodash-es": "4.17.12",
"@types/react": "18.2.60",
"@types/react": "18.2.61",
"@types/react-dom": "18.2.19",
"@types/react-syntax-highlighter": "15.5.11",
"@types/turndown": "5.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { CoreEditor, TypistEditorProps, TypistEditorRef, UpdateProps } from

type TypistEditorArgs = Partial<
TypistEditorProps & {
ref: React.ForwardedRef<TypistEditorRef>
ref: React.LegacyRef<TypistEditorRef>
}
>

Expand Down Expand Up @@ -63,12 +63,6 @@ function TypistEditorDecorator({
onUpdate: handleUpdate,
ref: (instance) => {
setTypistEditor(instance?.getEditor() || null)

if (typeof args.ref === 'function') {
args.ref(instance)
} else if (args.ref) {
args.ref.current = instance
}
},
}}
/>
Expand Down

0 comments on commit a0e0146

Please sign in to comment.