From dab80fb842c3e98f38001cf75a3ee8ee500e09a9 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Fri, 25 Oct 2019 16:14:42 -0400 Subject: [PATCH] Adds Proptypes --- .../src/components/Lookup/MultiCredentialsLookup.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/awx/ui_next/src/components/Lookup/MultiCredentialsLookup.jsx b/awx/ui_next/src/components/Lookup/MultiCredentialsLookup.jsx index 107ace0867..b73ca373a3 100644 --- a/awx/ui_next/src/components/Lookup/MultiCredentialsLookup.jsx +++ b/awx/ui_next/src/components/Lookup/MultiCredentialsLookup.jsx @@ -140,10 +140,22 @@ class MultiCredentialsLookup extends React.Component { MultiCredentialsLookup.propTypes = { tooltip: PropTypes.string, + credentials: PropTypes.arrayOf( + PropTypes.shape({ + id: PropTypes.number, + name: PropTypes.string, + description: PropTypes.string, + kind: PropTypes.string, + clound: PropTypes.bool, + }) + ), + onChange: PropTypes.func.isRequired, + onError: PropTypes.func.isRequired, }; MultiCredentialsLookup.defaultProps = { tooltip: '', + credentials: [], }; export { MultiCredentialsLookup as _MultiCredentialsLookup };