File tree Expand file tree Collapse file tree
packages/design-system/src/components/ds-filter-status-icon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ import styles from './ds-filter-status-icon.module.scss';
33import type { DsFilterStatusIconProps } from './ds-filter-status-icon.types' ;
44import { DsIcon } from '../ds-icon' ;
55
6+ const iconMap = {
7+ running : 'special-running' ,
8+ warning : 'special-warning' ,
9+ failed : 'special-failed' ,
10+ paused : 'special-paused' ,
11+ } as const ;
12+
613/**
714 * Design system Filter Status Icon component
815 * Status icons for toggle filter buttons to help users quickly distinguish workflow states
@@ -14,13 +21,6 @@ export const DsFilterStatusIcon = ({
1421 className,
1522 style,
1623} : DsFilterStatusIconProps ) => {
17- const iconMap = {
18- running : 'special-running' ,
19- warning : 'special-warning' ,
20- failed : 'special-failed' ,
21- paused : 'special-paused' ,
22- } as const ;
23-
2424 const statusLabel = active ? `${ status } status` : `${ status } status (inactive)` ;
2525
2626 return (
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export type FilterStatus = (typeof filterStatuses)[number];
77
88export interface DsFilterStatusIconProps {
99 /**
10- * The workflow status type
10+ * The filter status type
1111 */
1212 status : FilterStatus ;
1313 /**
You can’t perform that action at this time.
0 commit comments