Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ReputationMintsContainer = () => {
const query = gql`{
reputationMints {
contract
amount
address
}
}
`
return {
(state: IObservableState) => {
if (state.isLoading) {
return <div>loading mints</div>
} else if (state.error) {
throw state.error
} else {
return <span>found {state.data.data.reputationMints.length} reputation mints</span>
}
}
}
}
const DebugContainer = (props: IProps) => {