fix: add empty table text

This commit is contained in:
Taranto 2020-10-22 09:00:23 +01:00 committed by Josh Harvey
parent 97ffb7bdf1
commit 00387e0862
7 changed files with 81 additions and 48 deletions

View file

@ -92,7 +92,7 @@ const CustomerProfile = memo(() => {
const history = useHistory()
const { id: customerId } = useParams()
const { data: customerResponse, refetch: getCustomer } = useQuery(
const { data: customerResponse, refetch: getCustomer, loading } = useQuery(
GET_CUSTOMER,
{
variables: { customerId }
@ -171,7 +171,7 @@ const CustomerProfile = memo(() => {
/>
</Box>
</div>
<TransactionsList data={sortedTransactions} />
<TransactionsList data={sortedTransactions} loading={loading} />
</>
)
})