feat: overview rework and customer data mosaic view

This commit is contained in:
José Oliveira 2021-09-17 11:32:43 +01:00
parent d292ea4ae3
commit 0981a7d4af
3 changed files with 11 additions and 3 deletions

View file

@ -1,6 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { makeStyles, Breadcrumbs, Box } from '@material-ui/core'
import NavigateNextIcon from '@material-ui/icons/NavigateNext'
// import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { memo, useState } from 'react'
@ -265,6 +266,14 @@ const CustomerProfile = memo(() => {
{`Retrieve information`}
</ActionButton>
</div>
<div>
<ActionButton
className={classes.customerDiscount}
color="primary"
onClick={() => {}}>
{`Add individual discount`}
</ActionButton>
</div>
</div>
)}
</div>

View file

@ -30,10 +30,10 @@ export default {
color: white,
backgroundColor: offDarkColor,
'&:first-child': {
borderRadius: [5, 5, 0, 0]
borderRadius: [[5, 5, 0, 0]]
},
'&:last-child': {
borderRadius: [0, 0, 5, 5]
borderRadius: [[0, 0, 5, 5]]
}
},
icon: {

View file

@ -75,7 +75,6 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
view: R.path(['machineName'])
},
{
header: 'Direction',
width: 125,
view: it => (
<>