@apolitical/component-library 1.15.2 → 1.15.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/communities/members-list/members-list.d.ts +7 -6
- package/index.js +2 -2
- package/index.mjs +21 -20
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PaginationType } from '../../navigation';
|
|
2
1
|
import { MemberDetailsProps } from '../../user';
|
|
3
2
|
interface CommunityMemberProps extends MemberDetailsProps {
|
|
4
3
|
/** Whether the user is an admin of the community or not */
|
|
@@ -7,11 +6,13 @@ interface CommunityMemberProps extends MemberDetailsProps {
|
|
|
7
6
|
interface Props {
|
|
8
7
|
/** Details about members in the community */
|
|
9
8
|
members: {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
data: CommunityMemberProps[];
|
|
10
|
+
total?: number;
|
|
12
11
|
};
|
|
13
|
-
/**
|
|
14
|
-
|
|
12
|
+
/** Whether there is another page of members to load */
|
|
13
|
+
hasNextPage?: boolean;
|
|
14
|
+
/** Function to load the next page of members */
|
|
15
|
+
loadNextPage?: () => void;
|
|
15
16
|
/** The GTM context to use */
|
|
16
17
|
gtmContext?: string;
|
|
17
18
|
/** The GTM event to use */
|
|
@@ -19,5 +20,5 @@ interface Props {
|
|
|
19
20
|
/** Additional classes */
|
|
20
21
|
className?: string;
|
|
21
22
|
}
|
|
22
|
-
declare const MembersList: ({ members: {
|
|
23
|
+
declare const MembersList: ({ members: { data, total }, hasNextPage, loadNextPage, gtmContext, gtmType, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
23
24
|
export default MembersList;
|