Skip to content

Commit 8e3731d

Browse files
committed
Fix Badge types for picker
1 parent 73eb8a5 commit 8e3731d

File tree

1 file changed

+2
-3
lines changed
  • packages/ui-extensions/src/surfaces/admin/api/picker

1 file changed

+2
-3
lines changed

packages/ui-extensions/src/surfaces/admin/api/picker/picker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import {BadgeProps} from '../../components/Badge';
2-
31
interface Picker {
42
/**
53
* A Promise that resolves with the selected item IDs when the user presses the "Select" button in the picker.
@@ -40,11 +38,12 @@ interface PickerOptions {
4038
headers?: Header[];
4139
}
4240

41+
export type Tone = 'info' | 'success' | 'warning' | 'critical';
4342
export type Progress = 'incomplete' | 'partiallyComplete' | 'complete';
4443
type DataPoint = string | number | undefined;
4544
interface Badge {
4645
content: string;
47-
tone?: BadgeProps['tone'];
46+
tone?: Tone;
4847
progress?: Progress;
4948
}
5049

0 commit comments

Comments
 (0)