Skip to content

Commit

Permalink
Remove unnecessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Sep 30, 2022
1 parent 6ea9956 commit 9eb4ed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ export const AddIntegrationPageStep: React.FC<MultiPageStepLayoutProps> = (props
return (
extensionView && (
<ExtensionWrapper>
<extensionView.Component newPolicy={packagePolicy} />
<extensionView.Component />
</ExtensionWrapper>
)
);
}, [packagePolicy, extensionView]);
}, [extensionView]);

const content = useMemo(() => {
if (packageInfo.name !== 'endpoint') {
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/fleet/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export type {
PackagePolicyCreateExtensionComponentProps,
PackagePolicyCreateMultiStepExtension,
PackagePolicyCreateMultiStepExtensionComponent,
PackagePolicyCreateMultiStepExtensionComponentProps,
PackagePolicyEditExtension,
PackagePolicyEditExtensionComponent,
PackagePolicyEditExtensionComponentProps,
Expand Down
8 changes: 1 addition & 7 deletions x-pack/plugins/fleet/public/types/ui_extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,7 @@ export interface PackagePolicyCreateExtension {
* UI Component Extension is used on the pages displaying the ability to Create a multi step
* Integration Policy
*/
export type PackagePolicyCreateMultiStepExtensionComponent =
ComponentType<PackagePolicyCreateMultiStepExtensionComponentProps>;

export interface PackagePolicyCreateMultiStepExtensionComponentProps {
/** The integration policy being created */
newPolicy: NewPackagePolicy;
}
export type PackagePolicyCreateMultiStepExtensionComponent = ComponentType<{}>;

/** Extension point registration contract for Integration Policy Create views in multi-step onboarding */
export interface PackagePolicyCreateMultiStepExtension {
Expand Down

0 comments on commit 9eb4ed0

Please sign in to comment.