I could not figure out how to send the parameter to the graphql query through the client.

This commit is contained in:
gaba
2017-03-08 19:26:58 +01:00
parent 162091a6d0
commit 69916a6ef2
@@ -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>
}