@@ -6,7 +6,6 @@ import { LoadingState as DefaultLoadingState } from '@baseapp-frontend/design-sy
6
6
import { Typography } from '@mui/material'
7
7
import { useLazyLoadQuery } from 'react-relay'
8
8
9
- import { UserMembersListPaginationQuery as UserMembersListPaginationQueryType } from '../../../../__generated__/UserMembersListPaginationQuery.graphql'
10
9
import { UserMembersListPaginationQuery } from '../../common'
11
10
import MembersList from './MembersList'
12
11
import { NUMBER_OF_MEMBERS_ON_FIRST_LOAD } from './constants'
@@ -15,14 +14,11 @@ import type { ProfileMembersProps, ProfileMembersSuspendedProps } from './types'
15
14
const ProfileMembers : FC < ProfileMembersProps > = ( { MembersListProps = { } } ) => {
16
15
const { currentProfile } = useCurrentProfile ( )
17
16
18
- const data = useLazyLoadQuery < UserMembersListPaginationQueryType > (
19
- UserMembersListPaginationQuery ,
20
- {
21
- profileId : currentProfile ?. id || '' ,
22
- count : NUMBER_OF_MEMBERS_ON_FIRST_LOAD ,
23
- orderBy : 'status' ,
24
- } ,
25
- )
17
+ const data = useLazyLoadQuery ( UserMembersListPaginationQuery , {
18
+ profileId : currentProfile ?. id || '' ,
19
+ count : NUMBER_OF_MEMBERS_ON_FIRST_LOAD ,
20
+ orderBy : 'status' ,
21
+ } )
26
22
27
23
if ( ! data . profile ) return null
28
24
return < MembersList userRef = { data ?. profile } { ...MembersListProps } />
@@ -41,7 +37,7 @@ const ProfileMembersSuspended: FC<ProfileMembersSuspendedProps> = ({
41
37
< Typography component = "p" variant = "body2" color = "text.secondary" mb = { 4 } >
42
38
{ subtitle }
43
39
</ Typography >
44
- < Suspense fallback = { < InitialLoadingState /> } >
40
+ < Suspense fallback = { < InitialLoadingState CircularProgressProps = { { size : 20 } } /> } >
45
41
< ProfileMembers { ...props } />
46
42
</ Suspense >
47
43
</ >
0 commit comments