-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move common step containers to shared
- Loading branch information
1 parent
cc893f3
commit bb25a7f
Showing
11 changed files
with
90 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...t/public/application/components/shared/components/wizard_steps/step_aliases_container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
|
||
import { Forms } from '../../../../../shared_imports'; | ||
import { CommonWizardSteps } from './types'; | ||
import { StepAliases } from './step_aliases'; | ||
|
||
interface Props { | ||
esDocsBase: string; | ||
} | ||
|
||
export const StepAliasesContainer: React.FunctionComponent<Props> = ({ esDocsBase }) => { | ||
const { defaultValue, updateContent } = Forms.useContent<CommonWizardSteps>('aliases'); | ||
|
||
return ( | ||
<StepAliases defaultValue={defaultValue} onChange={updateContent} esDocsBase={esDocsBase} /> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../public/application/components/shared/components/wizard_steps/step_settings_container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
|
||
import { Forms } from '../../../../../shared_imports'; | ||
import { CommonWizardSteps } from './types'; | ||
import { StepSettings } from './step_settings'; | ||
|
||
interface Props { | ||
esDocsBase: string; | ||
} | ||
|
||
export const StepSettingsContainer = React.memo(({ esDocsBase }: Props) => { | ||
const { defaultValue, updateContent } = Forms.useContent<CommonWizardSteps>('settings'); | ||
|
||
return ( | ||
<StepSettings defaultValue={defaultValue} onChange={updateContent} esDocsBase={esDocsBase} /> | ||
); | ||
}); |
13 changes: 13 additions & 0 deletions
13
...ns/index_management/public/application/components/shared/components/wizard_steps/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { Mappings, IndexSettings, Aliases } from '../../../../../../common'; | ||
|
||
export interface CommonWizardSteps { | ||
settings?: IndexSettings; | ||
mappings?: Mappings; | ||
aliases?: Aliases; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...x_management/public/application/components/template_form/steps/step_aliases_container.tsx
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
..._management/public/application/components/template_form/steps/step_settings_container.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters