forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: register advanced settings under Management library
Signed-off-by: SuZhou-Joe <[email protected]>
- Loading branch information
1 parent
e2f277c
commit 3a8d01c
Showing
4 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/plugins/advanced_settings/public/management_app/components/page_wrapper/index.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,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export { PageWrapper } from './page_wrapper'; |
21 changes: 21 additions & 0 deletions
21
src/plugins/advanced_settings/public/management_app/components/page_wrapper/page_wrapper.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,21 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { EuiPageContent } from '@elastic/eui'; | ||
import React from 'react'; | ||
|
||
export const PageWrapper = (props: { fullWidth?: boolean; children?: React.ReactChild }) => { | ||
return ( | ||
<EuiPageContent | ||
style={props.fullWidth ? {} : { maxWidth: '75%', marginTop: '20px' }} | ||
hasShadow={false} | ||
hasBorder={false} | ||
panelPaddingSize="none" | ||
horizontalPosition="center" | ||
color="transparent" | ||
{...props} | ||
/> | ||
); | ||
}; |
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