Skip to content

Commit 29bc31b

Browse files
committed
fix: better types
1 parent 5d0df8b commit 29bc31b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22

33
import {DefinitionList, Flex, Label, Text} from '@gravity-ui/uikit';
4+
import type {LabelProps} from '@gravity-ui/uikit';
45

56
import type {TBridgePile} from '../../../../types/api/cluster';
67
import {BridgePileState} from '../../../../types/api/cluster';
@@ -13,9 +14,7 @@ import './BridgeInfoTable.scss';
1314

1415
const b = cn('bridge-info-table');
1516

16-
function getBridgePileStateTheme(
17-
state?: string,
18-
): 'normal' | 'info' | 'success' | 'warning' | 'danger' | 'utility' | 'unknown' {
17+
function getBridgePileStateTheme(state?: string): NonNullable<LabelProps['theme']> {
1918
if (!state) {
2019
return 'unknown';
2120
}

0 commit comments

Comments
 (0)