Add typescript

This commit is contained in:
Mark McDowall
2023-01-05 18:43:51 -08:00
committed by Qstick
parent 1290d68f29
commit 545d47b05c
17 changed files with 1347 additions and 375 deletions
@@ -27,6 +27,7 @@ SortMenuItem.propTypes = {
name: PropTypes.string,
sortKey: PropTypes.string,
sortDirection: PropTypes.oneOf(sortDirections.all),
children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
onPress: PropTypes.func.isRequired
};
+3 -1
View File
@@ -22,7 +22,9 @@ function ViewMenuItem(props) {
ViewMenuItem.propTypes = {
name: PropTypes.string,
selectedView: PropTypes.string.isRequired
selectedView: PropTypes.string.isRequired,
children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
onPress: PropTypes.func.isRequired
};
export default ViewMenuItem;