diff --git a/new-lamassu-admin/src/components/InformativeDialog.js b/new-lamassu-admin/src/components/InformativeDialog.js index c3c54c65..a416cb19 100644 --- a/new-lamassu-admin/src/components/InformativeDialog.js +++ b/new-lamassu-admin/src/components/InformativeDialog.js @@ -2,32 +2,19 @@ import { Dialog, DialogContent, makeStyles } from '@material-ui/core' import React, { memo } from 'react' import { IconButton } from 'src/components/buttons' -import { H4, P } from 'src/components/typography' +import { H2 } from 'src/components/typography' import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg' import { spacer } from 'src/styling/variables' const useStyles = makeStyles({ - dialogContent: { - width: 434, - padding: spacer * 2, - paddingRight: spacer * 3.5 - }, - dialogTitle: { - padding: spacer * 2, - paddingRight: spacer * 1.5, + closeButton: { display: 'flex', - 'justify-content': 'space-between', - '& > h4': { - margin: 0 - }, - '& > button': { - padding: 0, - marginTop: -(spacer / 2) - } + padding: [[spacer * 2, spacer * 2, 0, spacer * 2]], + paddingRight: spacer * 1.5, + justifyContent: 'end' }, - dialogActions: { - padding: spacer * 4, - paddingTop: spacer * 2 + title: { + margin: [[0, spacer * 2, spacer * 2, spacer * 2]] } }) @@ -54,13 +41,18 @@ export const InformativeDialog = memo( } return ( - - -

{title}

-
- - {data &&

{data}

} -
+ +
+ + + +
+

{title}

+ {data}
) } diff --git a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js index 4e6a4eb9..fd321bd7 100644 --- a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js +++ b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js @@ -64,7 +64,7 @@ const PhotosCard = memo(({ frontCameraPath, txData }) => { } onDissmised={() => { setPhotosDialog(false) @@ -79,6 +79,15 @@ export const PhotosCarousel = memo(({ txData }) => { return ( <> +
+ +
diff --git a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.styles.js b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.styles.js index 251e461f..ba424540 100644 --- a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.styles.js +++ b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.styles.js @@ -47,8 +47,7 @@ export default { margin: [[0, 0, 6, 0]] }, firstRow: { - padding: [[8]], - marginBottom: 10 + padding: [[8]] }, secondRow: { extend: p, @@ -64,5 +63,19 @@ export default { marginRight: 55 } } + }, + carousel: { + alignItems: 'center', + justifyContent: 'center', + display: 'flex', + width: 550, + height: 550 + }, + carouselImg: { + objectFit: 'cover', + objectPosition: 'center', + width: 550, + height: 550, + marginBottom: 40 } }