Skip to content

Commit 618180b

Browse files
author
sagiv.bengiat
committed
fixed proptyoes of example
1 parent 0f8979c commit 618180b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/docs/components/ItemWithLink.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import PropTypes from "prop-types";
23
import Item from "./SimpleItem";
34

45
const ItemWithLink = ({ tabIndex, text }) => (
@@ -9,4 +10,9 @@ const ItemWithLink = ({ tabIndex, text }) => (
910
</Item>
1011
);
1112

13+
ItemWithLink.propTypes = {
14+
text: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
15+
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
16+
};
17+
1218
export default ItemWithLink;

0 commit comments

Comments
 (0)