import React, { Component } from 'react'; import { compose, graphql } from 'react-apollo'; import { connect } from 'react-redux'; import styled from 'styled-components'; // import { Link } from 'react-router-dom'; import PortalQuery from '@graphql/Portal.gql'; import ServicesQuery from '@graphql/Services.gql'; import { processServices } from '@root/state/selectors'; import { LayoutContainer } from '@components/layout'; import { ServiceListItem } from '@components/services'; const StyledContainer = styled.div` position: relative; `; class ServiceList extends Component { render() { const { location, deploymentGroup, services, loading, error } = this.props; console.log('services = ', services); if(loading || error) { return (
Loading OR error
); } const serviceList = services.map((service) => (