Skip to content

Commit a4e519e

Browse files
authored
Merge pull request RedHatInsights#303 from apinkert/robot-dude
Update chatbot tab icon to 🤖
2 parents 0e434cf + d42d072 commit a4e519e

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

src/components/HelpPanel/HelpPanelCustomTabs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ import React, {
1111
} from 'react';
1212
import classNames from 'classnames';
1313

14-
import './HelpPanelCustomTabs.scss';
1514
import HelpPanelTabContainer from './HelpPanelTabs/HelpPanelTabContainer';
1615
import QuickStartsPanel from './HelpPanelTabs/QuickStartsPanel';
1716
import { TabType } from './HelpPanelTabs/helpPanelTabsMapper';
1817
import { getOpenQuickstartInHelpPanelStore } from '../../store/openQuickstartInHelpPanelStore';
1918
import { useGetState } from '@scalprum/react-core';
2019
import { useFlag, useFlags } from '@unleash/proxy-client-react';
2120
import { useIntl } from 'react-intl';
22-
import { OutlinedCommentsIcon, SearchIcon } from '@patternfly/react-icons';
21+
import { SearchIcon } from '@patternfly/react-icons';
22+
import { AiChatbotIcon } from '../common/AiChatbotIcon';
2323
import {
2424
QuickStartCloseModal,
2525
QuickStartStatus,
@@ -60,7 +60,7 @@ const createBaseTabs = (showVA: boolean): TabDefinition[] => {
6060
if (showVA) {
6161
tabs.push({
6262
id: 'virtual-assistant',
63-
title: <OutlinedCommentsIcon />,
63+
title: <AiChatbotIcon />,
6464
closeable: false,
6565
tabType: TabType.va,
6666
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from 'react';
2+
3+
interface AiChatbotIconProps {
4+
className?: string;
5+
width?: number;
6+
height?: number;
7+
}
8+
9+
export const AiChatbotIcon = ({
10+
className,
11+
width = 20,
12+
height = 20,
13+
}: AiChatbotIconProps) => {
14+
const iconPath =
15+
'/apps/frontend-assets/technology-icons/rh-ui-icon-ai-chatbot.svg';
16+
return (
17+
<svg width={width} height={height} className={className}>
18+
<image xlinkHref={iconPath} width={width} height={height} />
19+
</svg>
20+
);
21+
};

0 commit comments

Comments
 (0)