@@ -11,10 +11,14 @@ import { SwitchArrowRight } from '../../icons';
11
11
import type { ThemableCssProp } from '../../styledSystem' ;
12
12
import { common } from '../../styledSystem' ;
13
13
14
- export const OrganizationPreviewListItems = ( props : PropsWithChildren ) => {
14
+ type OrganizationPreviewListItemsProps = PropsWithChildren < {
15
+ elementDescriptor : ElementDescriptor ;
16
+ } > ;
17
+
18
+ export const OrganizationPreviewListItems = ( { elementDescriptor, children } : OrganizationPreviewListItemsProps ) => {
15
19
return (
16
20
< Col
17
- elementDescriptor = { descriptors . organizationListPreviewItems }
21
+ elementDescriptor = { elementDescriptor }
18
22
sx = { t => ( {
19
23
maxHeight : `calc(8 * ${ t . sizes . $12 } )` ,
20
24
overflowY : 'auto' ,
@@ -24,7 +28,7 @@ export const OrganizationPreviewListItems = (props: PropsWithChildren) => {
24
28
...common . unstyledScrollbar ( t ) ,
25
29
} ) }
26
30
>
27
- { props . children }
31
+ { children }
28
32
</ Col >
29
33
) ;
30
34
} ;
@@ -42,12 +46,14 @@ export const sharedMainIdentifierSx: ThemableCssProp = t => ({
42
46
43
47
type OrganizationPreviewListItemProps = PropsWithChildren < {
44
48
elementId : React . ComponentProps < typeof OrganizationPreview > [ 'elementId' ] ;
49
+ elementDescriptor : React . ComponentProps < typeof OrganizationPreview > [ 'elementDescriptor' ] ;
45
50
organizationData : UserOrganizationInvitationResource [ 'publicOrganizationData' ] ;
46
51
} > ;
47
52
48
53
export const OrganizationPreviewListItem = ( {
49
54
children,
50
55
elementId,
56
+ elementDescriptor,
51
57
organizationData,
52
58
} : OrganizationPreviewListItemProps ) => {
53
59
return (
@@ -64,7 +70,7 @@ export const OrganizationPreviewListItem = ({
64
70
} ) ,
65
71
sharedStyles ,
66
72
] }
67
- elementDescriptor = { descriptors . organizationListPreviewItem }
73
+ elementDescriptor = { elementDescriptor }
68
74
>
69
75
< OrganizationPreview
70
76
elementId = { elementId }
0 commit comments