diff --git a/new-lamassu-admin/src/components/buttons/ActionButton.jsx b/new-lamassu-admin/src/components/buttons/ActionButton.jsx
index d2fb2043..36eba7cf 100644
--- a/new-lamassu-admin/src/components/buttons/ActionButton.jsx
+++ b/new-lamassu-admin/src/components/buttons/ActionButton.jsx
@@ -7,14 +7,15 @@ import styles from './ActionButton.styles'
const useStyles = makeStyles(styles)
const ActionButton = memo(
- ({ className, Icon, InverseIcon, color, children, ...props }) => {
+ ({ className, Icon, InverseIcon, color, center, children, ...props }) => {
const classes = useStyles()
const classNames = {
[classes.actionButton]: true,
[classes.primary]: color === 'primary',
[classes.secondary]: color === 'secondary',
[classes.spring]: color === 'spring',
- [classes.tomato]: color === 'tomato'
+ [classes.tomato]: color === 'tomato',
+ [classes.center]: center
}
return (
diff --git a/new-lamassu-admin/src/components/buttons/ActionButton.styles.js b/new-lamassu-admin/src/components/buttons/ActionButton.styles.js
index f924347a..d6659029 100644
--- a/new-lamassu-admin/src/components/buttons/ActionButton.styles.js
+++ b/new-lamassu-admin/src/components/buttons/ActionButton.styles.js
@@ -119,5 +119,9 @@ export default {
}
}
},
+ center: {
+ alignItems: 'center',
+ justifyContent: 'center'
+ },
actionButtonIconActive: {}
}
diff --git a/new-lamassu-admin/src/components/inputs/base/TextInput.jsx b/new-lamassu-admin/src/components/inputs/base/TextInput.jsx
index 33ba68ac..2c4592e7 100644
--- a/new-lamassu-admin/src/components/inputs/base/TextInput.jsx
+++ b/new-lamassu-admin/src/components/inputs/base/TextInput.jsx
@@ -19,6 +19,7 @@ const TextInput = memo(
suffix,
textAlign,
width,
+ inputClasses,
// lg or sm
size,
bold,
@@ -29,7 +30,7 @@ const TextInput = memo(
const classes = useStyles({ textAlign, width, size })
const isTextFilled = !error && !R.isNil(value) && !R.isEmpty(value)
const filled = isPasswordFilled || isTextFilled
- const inputClasses = {
+ const divClass = {
[classes.bold]: bold
}
@@ -44,15 +45,17 @@ const TextInput = memo(
classes={{ root: classes.root }}
className={className}
InputProps={{
- className: classnames(inputClasses),
+ className: classnames(divClass),
classes: {
root: classes.size,
- underline: filled ? classes.underline : null
+ underline: filled ? classes.underline : null,
+ input: inputClasses
},
...InputProps
}}
- {...props} />
- );
+ {...props}
+ />
+ )
}
)
diff --git a/new-lamassu-admin/src/pages/Customers/CustomerData.jsx b/new-lamassu-admin/src/pages/Customers/CustomerData.jsx
index e1f9a265..61a8e1d3 100644
--- a/new-lamassu-admin/src/pages/Customers/CustomerData.jsx
+++ b/new-lamassu-admin/src/pages/Customers/CustomerData.jsx
@@ -1,28 +1,19 @@
-import Grid from '@mui/material/Grid'
-import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import { useState, React } from 'react'
import ImagePopper from 'src/components/ImagePopper'
import { H3, Info3 } from 'src/components/typography'
import CardIcon from 'src/styling/icons/ID/card/comet.svg?react'
import PhoneIcon from 'src/styling/icons/ID/phone/comet.svg?react'
-import CrossedCameraIcon from 'src/styling/icons/ID/photo/crossed-camera.svg?react'
import EditIcon from 'src/styling/icons/action/edit/comet.svg?react'
-import CustomerListViewReversedIcon from 'src/styling/icons/circle buttons/customer-list-view/white.svg?react'
-import CustomerListViewIcon from 'src/styling/icons/circle buttons/customer-list-view/zodiac.svg?react'
-import OverviewReversedIcon from 'src/styling/icons/circle buttons/overview/white.svg?react'
-import OverviewIcon from 'src/styling/icons/circle buttons/overview/zodiac.svg?react'
import * as Yup from 'yup'
-import { FeatureButton } from 'src/components/buttons'
import { TextInput } from 'src/components/inputs/formik'
import {
OVERRIDE_AUTHORIZED,
OVERRIDE_REJECTED
-} from 'src/pages/Customers/components/propertyCard'
+} from 'src/pages/Customers/components/consts'
import { onlyFirstToUpper } from 'src/utils/string'
-import styles from './CustomerData.styles'
import { EditableCard } from './components'
import {
customerDataElements,
@@ -32,32 +23,20 @@ import {
getFormattedPhone
} from './helper'
-const useStyles = makeStyles(styles)
-
const IMAGE_WIDTH = 165
const IMAGE_HEIGHT = 32
const POPUP_IMAGE_WIDTH = 360
const POPUP_IMAGE_HEIGHT = 240
-const Photo = ({ show, src }) => {
- const classes = useStyles({ width: IMAGE_WIDTH })
-
+const Photo = ({ src }) => {
return (
- <>
- {show ? (
-