mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Adds proptypes to CredentialPluginTestAlert component
This commit is contained in:
parent
9f8691dbea
commit
5cfca7896f
@ -158,9 +158,7 @@ function MetadataStep({ i18n }) {
|
||||
id="credential-plugin-test"
|
||||
variant="primary"
|
||||
type="submit"
|
||||
onClick={() =>
|
||||
testPluginMetadata()
|
||||
}
|
||||
onClick={() => testPluginMetadata()}
|
||||
>
|
||||
{i18n._(t`Test`)}
|
||||
</TestButton>
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { withI18n } from '@lingui/react';
|
||||
import { t } from '@lingui/macro';
|
||||
import { string, shape } from 'prop-types';
|
||||
import {
|
||||
Alert,
|
||||
AlertActionCloseButton,
|
||||
@ -75,8 +76,15 @@ function CredentialPluginTestAlert({
|
||||
);
|
||||
}
|
||||
|
||||
CredentialPluginTestAlert.propTypes = {};
|
||||
CredentialPluginTestAlert.propTypes = {
|
||||
credentialName: string.isRequired,
|
||||
successResponse: shape({}),
|
||||
errorResponse: shape({}),
|
||||
};
|
||||
|
||||
CredentialPluginTestAlert.defaultProps = {};
|
||||
CredentialPluginTestAlert.defaultProps = {
|
||||
successResponse: null,
|
||||
errorResponse: null,
|
||||
};
|
||||
|
||||
export default withI18n()(CredentialPluginTestAlert);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user