forked from elastic/kibana
-
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.
[Security Solutions][Cases] Cases Redesign (elastic#73247)
Co-authored-by: Xavier Mouligneau <[email protected]> Co-authored-by: Yara Tercero <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
75a1459
commit e616c15
Showing
54 changed files
with
1,888 additions
and
1,123 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
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
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
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
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
32 changes: 32 additions & 0 deletions
32
x-pack/plugins/security_solution/public/cases/components/tag_list/tags.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,32 @@ | ||
/* | ||
* 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, { memo } from 'react'; | ||
import { EuiBadgeGroup, EuiBadge, EuiBadgeGroupProps } from '@elastic/eui'; | ||
|
||
interface TagsProps { | ||
tags: string[]; | ||
color?: string; | ||
gutterSize?: EuiBadgeGroupProps['gutterSize']; | ||
} | ||
|
||
const TagsComponent: React.FC<TagsProps> = ({ tags, color = 'default', gutterSize }) => { | ||
return ( | ||
<> | ||
{tags.length > 0 && ( | ||
<EuiBadgeGroup gutterSize={gutterSize}> | ||
{tags.map((tag) => ( | ||
<EuiBadge data-test-subj={`tag-${tag}`} color={color} key={tag}> | ||
{tag} | ||
</EuiBadge> | ||
))} | ||
</EuiBadgeGroup> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export const Tags = memo(TagsComponent); |
Oops, something went wrong.