Skip to content

Commit

Permalink
[TreeView] Fix typo in errors (#12623)
Browse files Browse the repository at this point in the history
Signed-off-by: alissa-tung <alissa-tung@outlook.com>
  • Loading branch information
alissa-tung committed Apr 2, 2024
1 parent fec89a8 commit 90d6d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const updateItemsState = ({
[
'MUI X: The Tree View component requires all items to have a unique `id` property.',
'Alternatively, you can use the `getItemId` prop to specify a custom id for each item.',
`Tow items were provided with the same id in the \`items\` prop: "${id}"`,
`Two items were provided with the same id in the \`items\` prop: "${id}"`,
].join('\n'),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useTreeViewJSXItems: TreeViewPlugin<UseTreeViewJSXItemsSignature> =
[
'MUI X: The Tree View component requires all items to have a unique `id` property.',
'Alternatively, you can use the `getItemId` prop to specify a custom id for each item.',
`Tow items were provided with the same id in the \`items\` prop: "${item.id}"`,
`Two items were provided with the same id in the \`items\` prop: "${item.id}"`,
].join('\n'),
);
}
Expand Down

0 comments on commit 90d6d68

Please sign in to comment.