+
{!loading && !customerData.isAnonymous && (
+
+ it.code === clickedItem}
+ onClick={onClickSidebarItem}
+ />
+
Actions
-
+
{isSuspended && (
{
)}
{
{`Retrieve information`}
+
+
{}}>
+ {`Add individual discount`}
+
+
)}
-
+
+
+ {isOverview && (
+
+
+ setShowCompliance(!showCompliance)}
+ />
+
+ {!showCompliance && (
+
+
+
+ )}
+ {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..0bce506c 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: {
display: 'flex',
flexDirection: 'row',
- '& button': {
- marginRight: 15
- },
- '& > :last-child': {
- marginRight: 0
- }
+ margin: [[8, 0, 4, 0]],
+ padding: [[0, 35, 0]]
+ },
+ customerDiscount: {
+ display: 'flex',
+ flexDirection: 'row',
+ margin: [[0, 0, 4, 0]],
+ padding: [[0, 34, 0]]
+ },
+ panels: {
+ display: 'flex'
+ },
+ rightSidePanel: {
+ display: 'block',
+ width: 1100
+ },
+ leftSidePanel: {
+ width: 300
}
}
diff --git a/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.js b/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.js
new file mode 100644
index 00000000..87403d16
--- /dev/null
+++ b/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.js
@@ -0,0 +1,38 @@
+import { makeStyles } from '@material-ui/core/styles'
+import classnames from 'classnames'
+import React from 'react'
+
+import styles from './CustomerSidebar.styles.js'
+
+const useStyles = makeStyles(styles)
+
+const CustomerSidebar = ({ isSelected, onClick }) => {
+ const classes = useStyles()
+ const sideBarOptions = [
+ {
+ code: 'overview',
+ display: 'Overview'
+ },
+ {
+ code: 'customerData',
+ display: 'Customer Data'
+ }
+ ]
+
+ return (
+
+ {sideBarOptions?.map(it => (
+
onClick(it)}>
+ {it.display}
+
+ ))}
+
+ )
+}
+
+export default CustomerSidebar
diff --git a/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.styles.js b/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.styles.js
new file mode 100644
index 00000000..aa16e91a
--- /dev/null
+++ b/new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.styles.js
@@ -0,0 +1,35 @@
+import typographyStyles from 'src/components/typography/styles'
+import { zircon, offDarkColor, white } from 'src/styling/variables'
+
+const { tl2, p } = typographyStyles
+
+const sidebarColor = zircon
+
+export default {
+ sidebar: {
+ display: 'flex',
+ backgroundColor: sidebarColor,
+ width: 219,
+ flexDirection: 'column',
+ borderRadius: 5,
+ marginBottom: 50
+ },
+ link: {
+ extend: p,
+ position: 'relative',
+ color: offDarkColor,
+ padding: 15,
+ cursor: 'pointer'
+ },
+ activeLink: {
+ extend: tl2,
+ color: white,
+ backgroundColor: offDarkColor,
+ '&:first-child': {
+ borderRadius: '5px 5px 0px 0px'
+ },
+ '&:last-child': {
+ borderRadius: '0px 0px 5px 5px'
+ }
+ }
+}
diff --git a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
index 57d9bacf..af5eb959 100644
--- a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
+++ b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
@@ -71,8 +71,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
const tableElements = [
{
- header: 'Direction',
- width: 207,
+ width: 75,
view: it => (
<>
{it.txClass === 'cashOut' ? (
@@ -80,20 +79,19 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
) : (
)}
- {it.txClass === 'cashOut' ? 'Cash-out' : 'Cash-in'}
>
)
},
{
header: 'Transaction ID',
- width: 414,
+ width: 175,
view: it => (
{it.id}
)
},
{
header: 'Cash',
- width: 146,
+ width: 175,
textAlign: 'right',
view: it => (
<>
@@ -104,7 +102,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
},
{
header: 'Crypto',
- width: 142,
+ width: 175,
textAlign: 'right',
view: it => (
<>
@@ -117,7 +115,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
},
{
header: 'Date',
- width: 157,
+ width: 160,
view: it => formatDate(it.created, timezone, 'YYYY-MM-D')
},
{
diff --git a/new-lamassu-admin/src/pages/Customers/components/index.js b/new-lamassu-admin/src/pages/Customers/components/index.js
index 9b0c8945..82827400 100644
--- a/new-lamassu-admin/src/pages/Customers/components/index.js
+++ b/new-lamassu-admin/src/pages/Customers/components/index.js
@@ -1,6 +1,15 @@
import ComplianceDetails from './ComplianceDetails'
import CustomerDetails from './CustomerDetails'
+import CustomerSidebar from './CustomerSidebar'
+import Field from './Field'
import IdDataCard from './IdDataCard'
import TransactionsList from './TransactionsList'
-export { CustomerDetails, IdDataCard, TransactionsList, ComplianceDetails }
+export {
+ CustomerDetails,
+ IdDataCard,
+ TransactionsList,
+ ComplianceDetails,
+ CustomerSidebar,
+ Field
+}