Skip to content

Commit a7f885d

Browse files
authored
RI-7040: replace eui icon
* replace EuiIcon
1 parent 4c6983b commit a7f885d

File tree

230 files changed

+1536
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+1536
-984
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@
234234
"dependencies": {
235235
"@elastic/datemath": "^5.0.3",
236236
"@elastic/eui": "34.6.0",
237-
"@redis-ui/components": "^38.1.3",
237+
"@redis-ui/components": "^38.1.4",
238238
"@redis-ui/icons": "^4.16.1",
239-
"@redis-ui/styles": "^11.0.2",
239+
"@redis-ui/styles": "^11.4.0",
240240
"@redis-ui/table": "^2.4.0",
241241
"@reduxjs/toolkit": "^1.6.2",
242242
"@stablelib/snappy": "^1.0.2",
Lines changed: 10 additions & 0 deletions
Loading

redisinsight/ui/src/assets/img/overview/time_tip.svg

Lines changed: 6 additions & 5 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

redisinsight/ui/src/components/auto-refresh/AutoRefresh.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect, useState } from 'react'
2-
import { EuiIcon } from '@elastic/eui'
32
import cx from 'classnames'
43
import { ChevronDownIcon, RefreshIcon } from 'uiSrc/components/base/icons'
54
import {
@@ -13,6 +12,7 @@ import { localStorageService } from 'uiSrc/services'
1312
import { BrowserStorageItem } from 'uiSrc/constants'
1413
import { IconButton } from 'uiSrc/components/base/forms/buttons'
1514
import { ColorText } from 'uiSrc/components/base/text'
15+
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
1616
import { SwitchInput } from 'uiSrc/components/base/inputs'
1717
import { RiPopover, RiTooltip } from 'uiSrc/components/base'
1818
import {
@@ -284,7 +284,7 @@ const AutoRefresh = ({
284284
>
285285
{`${refreshRate} s`}
286286
<div className={styles.refreshRatePencil}>
287-
<EuiIcon type="pencil" />
287+
<RiIcon type="EditIcon" />
288288
</div>
289289
</ColorText>
290290
)}

redisinsight/ui/src/components/base/external-link/ExternalLink.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
import React from 'react'
2-
import { EuiIcon } from '@elastic/eui'
32
import { EuiLinkProps } from '@elastic/eui/src/components/link/link'
4-
5-
import { IconSize } from '@elastic/eui/src/components/icon/icon'
3+
import { IconProps } from 'uiSrc/components/base/icons'
4+
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
65
import { Link } from 'uiSrc/components/base/link/Link'
7-
import styles from './styles.module.scss'
86

97
export type Props = EuiLinkProps & {
108
href: string
119
iconPosition?: 'left' | 'right'
12-
iconSize?: IconSize
10+
iconSize?: IconProps['size']
1311
}
1412

1513
const ExternalLink = (props: Props) => {
16-
const { iconPosition = 'right', iconSize = 'm', children, ...rest } = props
14+
const { iconPosition = 'right', iconSize = 'M', children, ...rest } = props
1715

1816
const ArrowIcon = () => (
19-
<EuiIcon type="sortUp" size={iconSize} className={styles.linkIcon} />
17+
<RiIcon type="ArrowDiagonalIcon" size={iconSize} color="informative400" />
2018
)
2119

2220
return (

redisinsight/ui/src/components/base/icons/BannedIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { Icon, IconProps } from 'uiSrc/components/base/icons'
33
import BanIconSvg from 'uiSrc/assets/img/monitor/ban.svg?react'
44

55
export const BannedIcon = (props: IconProps) => (
6-
<Icon icon={BanIconSvg} {...props} />
6+
<Icon icon={BanIconSvg} {...props} isSvg />
77
)

redisinsight/ui/src/components/base/icons/BulkActions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import BulkActionsIcon from 'uiSrc/assets/img/icons/bulk_actions.svg?react'
33
import { Icon, IconProps } from 'uiSrc/components/base/icons'
44

55
export const BulkActions = (props: IconProps) => (
6-
<Icon icon={BulkActionsIcon} {...props} />
6+
<Icon icon={BulkActionsIcon} {...props} isSvg />
77
)

redisinsight/ui/src/components/base/icons/Cloud.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import React from 'react'
22
import CloudIcon from 'uiSrc/assets/img/oauth/cloud.svg?react'
33
import { Icon, IconProps } from 'uiSrc/components/base/icons'
44

5-
export const Cloud = (props: IconProps) => <Icon icon={CloudIcon} {...props} />
5+
export const Cloud = (props: IconProps) => <Icon icon={CloudIcon} {...props} isSvg />

redisinsight/ui/src/components/base/icons/Copilot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import CopilotSvg from 'uiSrc/assets/img/icons/copilot.svg?react'
33
import { Icon, IconProps } from 'uiSrc/components/base/icons'
44

55
export const CopilotIcon = (props: IconProps) => (
6-
<Icon icon={CopilotSvg} {...props} />
6+
<Icon icon={CopilotSvg} {...props} isSvg />
77
)

0 commit comments

Comments
 (0)