Skip to content

Commit da26e17

Browse files
committed
chore: type strict VARIANT_TO_ICON_COLOR_MAP
1 parent a2a86fc commit da26e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/constants.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { OptionType } from '@Common/Types'
1818

1919
import { InfoBlockProps } from './Components'
20-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types'
20+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types'
2121

2222
export const ARTIFACT_STATUS = {
2323
PROGRESSING: 'Progressing',
@@ -564,7 +564,7 @@ export const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string> = {
564564
neutral: 'bcn-1',
565565
}
566566

567-
export const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], string> = {
567+
export const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], IconBaseColorType> = {
568568
error: 'R500',
569569
help: 'V500',
570570
information: 'B500',

0 commit comments

Comments
 (0)