mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 16:49:31 +08:00
I could not figure out how to send the parameter to the graphql query through the client.
This commit is contained in:
@@ -21,16 +21,19 @@ const FlaggedAccounts = ({...props}) => {
|
||||
{
|
||||
hasResults
|
||||
? commenters.map((commenter, index) => {
|
||||
return <User
|
||||
user={commenter}
|
||||
key={index}
|
||||
index={index}
|
||||
modActionButtons={['REJECT', 'APPROVE']}
|
||||
showBanUserDialog={props.showBanUserDialog}
|
||||
showSuspendUserDialog={props.showSuspendUserDialog}
|
||||
approveUser={props.approveUser}
|
||||
suspendUser={props.suspendUser}
|
||||
/>;
|
||||
if (commenter.status === 'PENDING' && commenter.actions.length > 0) {
|
||||
return <User
|
||||
user={commenter}
|
||||
key={index}
|
||||
index={index}
|
||||
modActionButtons={['REJECT', 'APPROVE']}
|
||||
showBanUserDialog={props.showBanUserDialog}
|
||||
showSuspendUserDialog={props.showSuspendUserDialog}
|
||||
approveUser={props.approveUser}
|
||||
suspendUser={props.suspendUser}
|
||||
/>;
|
||||
}
|
||||
return null;
|
||||
})
|
||||
: <EmptyCard>{lang.t('community.no-flagged-accounts')}</EmptyCard>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user