Skip to content

Commit 258c251

Browse files
author
Roman.Sergeenko
committed
#RI-782 - fix pr comments
1 parent d4d8874 commit 258c251

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redisinsight/ui/src/components/keyboard-shortcut/KeyboardShortcut.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react'
2+
import { isString } from 'lodash'
23
import cx from 'classnames'
34
import { EuiBadge, EuiText } from '@elastic/eui'
45

@@ -14,7 +15,7 @@ const KeyboardShortcut = ({ items = [], separator = '', transparent = false }: P
1415
<div className={styles.container}>
1516
{
1617
items.map((item: string | JSX.Element, index: number) => (
17-
<div key={typeof item === 'string' ? item : item?.props?.children}>
18+
<div key={isString(item) ? item : item?.props?.children}>
1819
{ (index !== 0) && <div className={styles.separator}>{separator}</div> }
1920
<EuiBadge className={cx(styles.badge, { [styles.transparent]: transparent })}>
2021
<EuiText size="s">{item}</EuiText>

0 commit comments

Comments
 (0)