-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Qxisylolo <[email protected]>
- Loading branch information
Showing
5 changed files
with
72 additions
and
129 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
48 changes: 48 additions & 0 deletions
48
src/plugins/home/public/application/components/use_case_card.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,48 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiIcon } from '@elastic/eui'; | ||
import { ContentManagementPluginStart } from '../../../../content_management/public'; | ||
|
||
export const registerUseCaseCard = ( | ||
contentManagement: ContentManagementPluginStart, | ||
{ | ||
target, | ||
order, | ||
id, | ||
title, | ||
description, | ||
icon, | ||
}: { | ||
target: string; | ||
order: number; | ||
id: string; | ||
title: string; | ||
description: string; | ||
icon: string; | ||
} | ||
) => { | ||
contentManagement.registerContentProvider({ | ||
id: `home_get_started_${id}`, | ||
getTargetArea: () => target, | ||
getContent: () => ({ | ||
id, | ||
kind: 'card', | ||
order, | ||
description, | ||
title, | ||
cardProps: { | ||
layout: 'horizontal', | ||
}, | ||
getIcon: () => | ||
React.createElement(EuiIcon, { | ||
size: 'l', | ||
color: 'subdued', | ||
type: icon, | ||
}), | ||
}), | ||
}); | ||
}; |
91 changes: 0 additions & 91 deletions
91
src/plugins/home/public/application/components/use_case_card.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