File tree 4 files changed +6
-8
lines changed
packages/components/src/components/hds
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ export default class HdsAppFooterStatusLinkComponent extends Component<HdsAppFoo
65
65
*/
66
66
get statusIcon ( ) {
67
67
if ( this . status && ! this . args . statusIcon ) {
68
- return STATUSES [ this . status ]
69
- ?. iconName as FlightIconSignature [ 'Args' ] [ 'name' ] ;
68
+ return STATUSES [ this . status ] ?. iconName ;
70
69
}
71
70
return this . args . statusIcon ;
72
71
}
Original file line number Diff line number Diff line change 2
2
* Copyright (c) HashiCorp, Inc.
3
3
* SPDX-License-Identifier: MPL-2.0
4
4
*/
5
+ import type { FlightIconSignature } from '@hashicorp/ember-flight-icons/components/flight-icon' ;
5
6
6
7
export enum HdsAppFooterStatusValues {
7
8
Operational = 'operational' ,
@@ -16,7 +17,7 @@ export const HdsAppFooterStatusLinkStatusValues: Record<
16
17
HdsAppFooterStatusValues ,
17
18
{
18
19
text : string ;
19
- iconName : string ;
20
+ iconName : FlightIconSignature [ 'Args' ] [ 'name' ] ;
20
21
}
21
22
> = {
22
23
[ HdsAppFooterStatusValues . Operational ] : {
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
11
11
HdsStepperStatusToIconsValues ,
12
12
} from '../types.ts' ;
13
13
import type { HdsStepperStatuses } from '../types.ts' ;
14
- import type { FlightIconSignature } from '@hashicorp/ember-flight-icons/components/flight-icon' ;
15
14
16
15
export const DEFAULT_STATUS = HdsStepperStatusesValues . Incomplete ;
17
16
export const STATUSES : string [ ] = Object . values ( HdsStepperStatusesValues ) ;
@@ -62,9 +61,7 @@ export default class HdsStepperTaskIndicatorComponent extends Component<HdsStepp
62
61
*/
63
62
64
63
get iconName ( ) {
65
- return MAPPING_STATUS_TO_ICONS [
66
- this . status
67
- ] as FlightIconSignature [ 'Args' ] [ 'name' ] ;
64
+ return MAPPING_STATUS_TO_ICONS [ this . status ] ;
68
65
}
69
66
70
67
/**
Original file line number Diff line number Diff line change 2
2
* Copyright (c) HashiCorp, Inc.
3
3
* SPDX-License-Identifier: MPL-2.0
4
4
*/
5
+ import type { FlightIconSignature } from '@hashicorp/ember-flight-icons/components/flight-icon' ;
5
6
6
7
export enum HdsStepperStatusesValues {
7
8
Incomplete = 'incomplete' ,
@@ -14,7 +15,7 @@ export type HdsStepperStatuses = `${HdsStepperStatusesValues}`;
14
15
15
16
export const HdsStepperStatusToIconsValues : Record <
16
17
HdsStepperStatusesValues ,
17
- string
18
+ FlightIconSignature [ 'Args' ] [ 'name' ]
18
19
> = {
19
20
[ HdsStepperStatusesValues . Incomplete ] : 'circle' ,
20
21
[ HdsStepperStatusesValues . Progress ] : 'circle-half' ,
You can’t perform that action at this time.
0 commit comments