Skip to content

Commit

Permalink
fix(StructuredListInput): remove onChange deprecation warning (#13368)
Browse files Browse the repository at this point in the history
* fix(structuredlist): remove onChange deprecation warning

* chore: update snaps

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tay1orjones and kodiakhq[bot] authored Mar 20, 2023
1 parent 888b0c0 commit 270d6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6857,7 +6857,9 @@ Map {
"name": Object {
"type": "string",
},
"onChange": [Function],
"onChange": Object {
"type": "func",
},
"title": Object {
"type": "string",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ StructuredListInput.propTypes = {
/**
* Provide an optional hook that is called each time the input is updated
*/
onChange: deprecate(
PropTypes.func,
`\nThe prop \`onChange\` will be removed in the next major version of Carbon.`
),
onChange: PropTypes.func,

/**
* Provide a `title` for the input
Expand Down

0 comments on commit 270d6f8

Please sign in to comment.