+
{!loading && !customerData.isAnonymous && (
+
+ code === clickedItem}
+ onClick={onClickSidebarItem}
+ />
+
Actions
-
+
+
{}}>
+ {`Add individual discount`}
+
+
+
)}
-
+
+
+ {isOverview && (
+
+
+ setShowCompliance(!showCompliance)}
+ />
+
+
+
+
+
+ )}
+ {isCustomerData && (
+
+
+
+ )}
+
- {!showCompliance && (
-
- )}
- {showCompliance && (
-
- )}
>
)
})
diff --git a/new-lamassu-admin/src/pages/Customers/CustomerProfile.styles.js b/new-lamassu-admin/src/pages/Customers/CustomerProfile.styles.js
index 82346d46..69094460 100644
--- a/new-lamassu-admin/src/pages/Customers/CustomerProfile.styles.js
+++ b/new-lamassu-admin/src/pages/Customers/CustomerProfile.styles.js
@@ -15,14 +15,26 @@ export default {
customerDetails: {
marginBottom: 18
},
- customerActions: {
+ customerBlock: props => ({
display: 'flex',
flexDirection: 'row',
- '& button': {
- marginRight: 15
- },
- '& > :last-child': {
- marginRight: 0
- }
+ margin: [[0, 0, 4, 0]],
+ padding: [[0, props.blocked ? 35 : 48, 0]]
+ }),
+ customerDiscount: {
+ display: 'flex',
+ flexDirection: 'row',
+ margin: [[8, 0, 4, 0]],
+ padding: [[0, 24, 0]]
+ },
+ panels: {
+ display: 'flex'
+ },
+ rightSidePanel: {
+ display: 'block',
+ width: 1100
+ },
+ leftSidePanel: {
+ width: 300
}
}
diff --git a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js b/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js
deleted file mode 100644
index d5d66773..00000000
--- a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.js
+++ /dev/null
@@ -1,131 +0,0 @@
-import { Box } from '@material-ui/core'
-import { makeStyles } from '@material-ui/core/styles'
-import * as R from 'ramda'
-import React from 'react'
-
-import ImagePopper from 'src/components/ImagePopper'
-import { H3, Info3 } from 'src/components/typography'
-import {
- PropertyCard,
- OVERRIDE_AUTHORIZED,
- OVERRIDE_REJECTED
-} from 'src/pages/Customers/components/propertyCard'
-import { ReactComponent as CrossedCameraIcon } from 'src/styling/icons/ID/photo/crossed-camera.svg'
-import { URI } from 'src/utils/apollo'
-
-import { complianceDetailsStyles } from './ComplianceDetails.styles'
-import Field from './Field'
-
-import { IdDataCard } from './'
-
-const useStyles = makeStyles(complianceDetailsStyles)
-
-const imageWidth = 165
-const imageHeight = 45
-const popupImageWidth = 360
-const popupImageHeight = 240
-
-const Photo = ({ show, src }) => {
- const classes = useStyles({ width: imageWidth })
-
- return (
- <>
- {show ? (
-
- ) : (
-
-
-
- )}
- >
- )
-}
-
-const ComplianceDetails = ({ customer, updateCustomer }) => {
- const classes = useStyles({ width: imageWidth })
-
- const sanctions = R.path(['sanctions'])(customer)
- const sanctionsAt = R.path(['sanctionsAt'])(customer)
- const sanctionsDisplay = !sanctionsAt
- ? 'Not checked yet'
- : sanctions
- ? 'Passed'
- : 'Failed'
-
- return (
-
-
Compliance details
-
-
-
-
-
- updateCustomer({ idCardPhotoOverride: OVERRIDE_AUTHORIZED })
- }
- reject={() =>
- updateCustomer({ idCardPhotoOverride: OVERRIDE_REJECTED })
- }>
-
-
-
- updateCustomer({ frontCameraOverride: OVERRIDE_AUTHORIZED })
- }
- reject={() =>
- updateCustomer({ frontCameraOverride: OVERRIDE_REJECTED })
- }>
-
-
-
-
-
- updateCustomer({ usSsnOverride: OVERRIDE_AUTHORIZED })
- }
- reject={() =>
- updateCustomer({ usSsnOverride: OVERRIDE_REJECTED })
- }>
-
-
-
- updateCustomer({ sanctionsOverride: OVERRIDE_AUTHORIZED })
- }
- reject={() =>
- updateCustomer({ sanctionsOverride: OVERRIDE_REJECTED })
- }>
- {sanctionsDisplay}
-
-
-
-
-
- )
-}
-
-export default ComplianceDetails
diff --git a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.styles.js b/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.styles.js
deleted file mode 100644
index 1bb1d48f..00000000
--- a/new-lamassu-admin/src/pages/Customers/components/ComplianceDetails.styles.js
+++ /dev/null
@@ -1,25 +0,0 @@
-const complianceDetailsStyles = {
- complianceDetailsGrid: {
- display: 'flex',
- flexDirection: 'row'
- },
- firstColumn: {
- display: 'flex',
- flexDirection: 'column',
- width: '100%',
- marginRight: 10
- },
- lastColumn: {
- display: 'flex',
- flexDirection: 'column',
- width: '100%',
- marginLeft: 10
- },
- photoWrapper: ({ width }) => ({
- display: 'flex',
- justifyContent: 'center',
- width
- })
-}
-
-export { complianceDetailsStyles }
diff --git a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
index 27714ee9..d5412738 100644
--- a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
+++ b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.js
@@ -2,11 +2,8 @@ import { makeStyles, Box } from '@material-ui/core'
import * as R from 'ramda'
import React, { memo } from 'react'
-import { SubpageButton } from 'src/components/buttons'
import { H2, Label1, P } from 'src/components/typography'
import { ReactComponent as IdIcon } from 'src/styling/icons/ID/card/zodiac.svg'
-import { ReactComponent as LawIconInverse } from 'src/styling/icons/circle buttons/law/white.svg'
-import { ReactComponent as LawIcon } from 'src/styling/icons/circle buttons/law/zodiac.svg'
import mainStyles from '../CustomersList.styles'
import { getFormattedPhone, getName } from '../helper'
@@ -70,13 +67,6 @@ const CustomerDetails = memo(
locale.country
)}
-
- Compliance details
-