mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
Adds proptypes to CredentialPluginTestAlert component
This commit is contained in:
@@ -158,9 +158,7 @@ function MetadataStep({ i18n }) {
|
|||||||
id="credential-plugin-test"
|
id="credential-plugin-test"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
onClick={() =>
|
onClick={() => testPluginMetadata()}
|
||||||
testPluginMetadata()
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{i18n._(t`Test`)}
|
{i18n._(t`Test`)}
|
||||||
</TestButton>
|
</TestButton>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { withI18n } from '@lingui/react';
|
import { withI18n } from '@lingui/react';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
|
import { string, shape } from 'prop-types';
|
||||||
import {
|
import {
|
||||||
Alert,
|
Alert,
|
||||||
AlertActionCloseButton,
|
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);
|
export default withI18n()(CredentialPluginTestAlert);
|
||||||
|
|||||||
Reference in New Issue
Block a user