mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-09 19:15:55 +00:00
remove unused resolvers
This commit is contained in:
parent
8e923a6e11
commit
16fe253f41
@ -11,7 +11,6 @@ query Profile($id: ID!) {
|
|||||||
type
|
type
|
||||||
name
|
name
|
||||||
creationTime
|
creationTime
|
||||||
lifetimeReceived @client
|
|
||||||
pledgesInfos {
|
pledgesInfos {
|
||||||
id
|
id
|
||||||
token
|
token
|
||||||
|
@ -48,14 +48,7 @@ class App extends React.Component {
|
|||||||
setGraphClient = network => {
|
setGraphClient = network => {
|
||||||
const graphUri = uris[network]
|
const graphUri = uris[network]
|
||||||
const client = new ApolloClient({
|
const client = new ApolloClient({
|
||||||
uri: graphUri,
|
uri: graphUri
|
||||||
resolvers: {
|
|
||||||
Profile: {
|
|
||||||
lifetimeReceived(infos) {
|
|
||||||
return infos.pledgesInfos[0].lifetimeReceived
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.client = client
|
this.client = client
|
||||||
this.setState({ clientReady: true })
|
this.setState({ clientReady: true })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user