@@ -5,6 +5,8 @@
|
||||
```ts
|
||||
/// <reference types="react" />
|
||||
|
||||
import { GroupEntity } from '@backstage/catalog-model';
|
||||
|
||||
// @public (undocumented)
|
||||
export const GroupListPicker: (props: GroupListPickerProps) => JSX.Element;
|
||||
|
||||
@@ -12,7 +14,8 @@ export const GroupListPicker: (props: GroupListPickerProps) => JSX.Element;
|
||||
export type GroupListPickerProps = {
|
||||
placeholder?: string;
|
||||
groupTypes?: Array<string>;
|
||||
defaultGroup?: string;
|
||||
initialGroup?: string | undefined;
|
||||
onChange: (value: GroupEntity | undefined) => void;
|
||||
};
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
|
||||
@@ -69,7 +69,8 @@ describe('<GroupListPicker />', () => {
|
||||
<GroupListPicker
|
||||
placeholder="Search"
|
||||
groupTypes={['org', 'department']}
|
||||
defaultGroup="test"
|
||||
initialGroup="test"
|
||||
onChange={() => {}}
|
||||
/>
|
||||
</ApiProvider>,
|
||||
);
|
||||
@@ -83,6 +84,8 @@ describe('<GroupListPicker />', () => {
|
||||
<GroupListPicker
|
||||
placeholder="Search"
|
||||
groupTypes={['org', 'department']}
|
||||
initialGroup="Group A"
|
||||
onChange={() => {}}
|
||||
/>
|
||||
</ApiProvider>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user