feat: overview rework and customer data mosaic view
This commit is contained in:
parent
d292ea4ae3
commit
0981a7d4af
3 changed files with 11 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import { useQuery, useMutation } from '@apollo/react-hooks'
|
import { useQuery, useMutation } from '@apollo/react-hooks'
|
||||||
import { makeStyles, Breadcrumbs, Box } from '@material-ui/core'
|
import { makeStyles, Breadcrumbs, Box } from '@material-ui/core'
|
||||||
import NavigateNextIcon from '@material-ui/icons/NavigateNext'
|
import NavigateNextIcon from '@material-ui/icons/NavigateNext'
|
||||||
|
// import classnames from 'classnames'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
import * as R from 'ramda'
|
import * as R from 'ramda'
|
||||||
import React, { memo, useState } from 'react'
|
import React, { memo, useState } from 'react'
|
||||||
|
|
@ -265,6 +266,14 @@ const CustomerProfile = memo(() => {
|
||||||
{`Retrieve information`}
|
{`Retrieve information`}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<ActionButton
|
||||||
|
className={classes.customerDiscount}
|
||||||
|
color="primary"
|
||||||
|
onClick={() => {}}>
|
||||||
|
{`Add individual discount`}
|
||||||
|
</ActionButton>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,10 @@ export default {
|
||||||
color: white,
|
color: white,
|
||||||
backgroundColor: offDarkColor,
|
backgroundColor: offDarkColor,
|
||||||
'&:first-child': {
|
'&:first-child': {
|
||||||
borderRadius: [5, 5, 0, 0]
|
borderRadius: [[5, 5, 0, 0]]
|
||||||
},
|
},
|
||||||
'&:last-child': {
|
'&:last-child': {
|
||||||
borderRadius: [0, 0, 5, 5]
|
borderRadius: [[0, 0, 5, 5]]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,6 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
|
||||||
view: R.path(['machineName'])
|
view: R.path(['machineName'])
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Direction',
|
|
||||||
width: 125,
|
width: 125,
|
||||||
view: it => (
|
view: it => (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue