Skip to content

Commit 1a4017d

Browse files
committed
chore: use icon component instead
1 parent 9877d78 commit 1a4017d

File tree

4 files changed

+5
-32
lines changed

4 files changed

+5
-32
lines changed

src/assets/icons/ic-sparkles.svg

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/components/common/SidePanel/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const TABS_CONFIG: TabConfig[] = [
1616
},
1717
{
1818
label: 'Ask',
19-
iconName: 'ic-sparkle-color',
19+
iconName: 'ic-sparkle-ai-color',
2020
id: SidePanelTab.ASK_DEVTRON,
2121
},
2222
]

src/components/v2/devtronStackManager/DevtronStackManager.service.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
import {
1818
get,
1919
getUrlWithSearchParams,
20+
Icon,
2021
InstallationType,
2122
post,
2223
refresh,
2324
ToastManager,
2425
ToastVariantType,
2526
} from '@devtron-labs/devtron-fe-common-lib'
26-
import { ReactComponent as ICSparkles } from '@Icons/ic-sparkles.svg'
2727
import { ReactComponent as ICArrowClockwise } from '@Icons/ic-arrow-clockwise.svg'
2828
import { ModuleNameMap, Routes, UPDATE_AVAILABLE_TOAST_PROGRESS_BG } from '../../../config'
2929
import {
@@ -121,7 +121,7 @@ export const getModuleInfo = async (moduleName: string, forceReload?: boolean):
121121
onClick: refresh,
122122
startIcon: <ICArrowClockwise />,
123123
},
124-
icon: <ICSparkles />,
124+
icon: <Icon name="ic-sparkle-color" color={null} />,
125125
progressBarBg: UPDATE_AVAILABLE_TOAST_PROGRESS_BG,
126126
})
127127
isReloadToastShown = true

src/stories/ToastManager.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
import { action } from '@storybook/addon-actions'
1818
import type { Meta, StoryObj } from '@storybook/react'
1919

20-
import { Button, ToastManager, ToastVariantType } from '@devtron-labs/devtron-fe-common-lib'
20+
import { Button, Icon, ToastManager, ToastVariantType } from '@devtron-labs/devtron-fe-common-lib'
2121

2222
import { ReactComponent as ICArrowClockwise } from '@Icons/ic-arrow-clockwise.svg'
23-
import { ReactComponent as ICSparkles } from '@Icons/ic-sparkles.svg'
2423
import { UPDATE_AVAILABLE_TOAST_PROGRESS_BG } from '@Config/constants'
2524

2625
type ShowToastParameters = Parameters<typeof ToastManager.showToast>
@@ -118,7 +117,7 @@ export const CustomIconAndProgressBar: Story = {
118117
...Default.args,
119118
toastProps: {
120119
...Default.args.toastProps,
121-
icon: <ICSparkles />,
120+
icon: <Icon name="ic-sparkle-color" color={null} />,
122121
progressBarBg: UPDATE_AVAILABLE_TOAST_PROGRESS_BG,
123122
buttonProps: {
124123
...WithButton.args.toastProps.buttonProps,

0 commit comments

Comments
 (0)