+
Info card
{!editing && (
{
Cancel
- {error && (
-
- Failed to save changes
-
- )}
+ {error && Failed to save changes}
>
)}
diff --git a/new-lamassu-admin/src/pages/OperatorInfo/OperatorInfo.styles.js b/new-lamassu-admin/src/pages/OperatorInfo/OperatorInfo.styles.js
index 962a797f..1cc0c3ba 100644
--- a/new-lamassu-admin/src/pages/OperatorInfo/OperatorInfo.styles.js
+++ b/new-lamassu-admin/src/pages/OperatorInfo/OperatorInfo.styles.js
@@ -1,26 +1,15 @@
-import typographyStyles from 'src/components/typography/styles'
-import theme from 'src/styling/theme'
import { offColor } from 'src/styling/variables'
-const { p } = typographyStyles
-
-const styles = {
+const global = {
+ content: {
+ display: 'flex'
+ },
header: {
display: 'flex',
alignItems: 'center',
position: 'relative',
flex: 'wrap'
},
- transparentButton: {
- '& > *': {
- margin: 'auto 12px'
- },
- '& button': {
- border: 'none',
- backgroundColor: 'transparent',
- cursor: 'pointer'
- }
- },
section: {
marginBottom: 52
},
@@ -37,55 +26,23 @@ const styles = {
switchRow: {
display: 'flex',
alignItems: 'center',
- marginBottom: 28,
- width: 600
+ position: 'relative',
+ flex: 'wrap',
+ justifyContent: 'space-between',
+ width: 396
},
switch: {
display: 'flex',
- alignItems: 'center',
- marginLeft: 120
+ alignItems: 'center'
},
submit: {
justifyContent: 'flex-start',
alignItems: 'center',
- height: 19,
padding: [[0, 4, 4, 4]],
'& > button': {
marginRight: 40
}
},
- singleButton: {
- marginTop: 50,
- paddingLeft: 0
- }
-}
-
-const contactInfoStyles = {
- infoMessage: {
- display: 'flex',
- marginBottom: 52,
- '& > p': {
- width: 330,
- color: offColor,
- marginTop: 4,
- marginLeft: 16
- }
- },
- radioButtonsRow: {
- height: 60,
- marginBottom: 14
- },
- radioButtons: {
- display: 'flex',
- flexDirection: 'row',
- paddingLeft: 4
- },
- rowWrapper: {
- display: 'flex',
- alignItems: 'center',
- position: 'relative',
- flex: 'wrap'
- },
transparentButton: {
'& > *': {
margin: 'auto 12px'
@@ -95,20 +52,15 @@ const contactInfoStyles = {
backgroundColor: 'transparent',
cursor: 'pointer'
}
- }
-}
-
-const termsConditionsStyles = {
- enable: {
+ },
+ infoMessage: {
display: 'flex',
- alignItems: 'center',
- marginBottom: 22 - theme.spacing(1),
- '& > span:first-child': {
- extend: p,
- marginRight: 116 - theme.spacing(1)
- },
- '& > span:last-child': {
- marginLeft: 4
+ marginBottom: 52,
+ '& > p': {
+ width: 330,
+ color: offColor,
+ marginTop: 4,
+ marginLeft: 16
}
}
}
@@ -160,4 +112,4 @@ const fieldStyles = {
}
}
-export { styles, contactInfoStyles, termsConditionsStyles, fieldStyles }
+export { global, fieldStyles }
diff --git a/new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting/ReceiptPrinting.js b/new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting.js
similarity index 90%
rename from new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting/ReceiptPrinting.js
rename to new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting.js
index d98d42d0..907700c1 100644
--- a/new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting/ReceiptPrinting.js
+++ b/new-lamassu-admin/src/pages/OperatorInfo/ReceiptPrinting.js
@@ -9,9 +9,9 @@ import { Switch } from 'src/components/inputs'
import { H4, P, Label2 } from 'src/components/typography'
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
-import { mainStyles } from './ReceiptPrinting.styles'
+import { global } from './OperatorInfo.styles'
-const useStyles = makeStyles(mainStyles)
+const useStyles = makeStyles(global)
const GET_CONFIG = gql`
query getData {
@@ -45,12 +45,12 @@ const ReceiptPrinting = memo(({ wizard }) => {
return (
<>
-
+
Receipt options
-
+
Enable receipt printing?
-
+
@@ -66,8 +66,8 @@ const ReceiptPrinting = memo(({ wizard }) => {
})
}
/>
+ {receiptPrintingConfig.active ? 'Yes' : 'No'}
-
{receiptPrintingConfig.active ? 'Yes' : 'No'}
{label}
- {value}
+ {value}
>
)}
{editing && (
@@ -85,9 +81,7 @@ const SAVE_CONFIG = gql`
}
`
-const styles = R.merge(globalStyles, termsConditionsStyles)
-
-const useTermsConditionsStyles = makeStyles(styles)
+const useTermsConditionsStyles = makeStyles(global)
const TermsConditions = () => {
const [error, setError] = useState(null)
@@ -171,12 +165,12 @@ const TermsConditions = () => {
return (
<>
-
+
Terms & Conditions
-
-
-
Show on screen
+
+
Show on screen
+
@@ -187,64 +181,60 @@ const TermsConditions = () => {
/>
{showOnScreen ? 'Yes' : 'No'}
-
- Info card
- {!editing && (
- setEditing(true)}>
-
-
- )}
-
-
save(values)}
- onReset={() => {
- setEditing(false)
- setError(null)
- }}>
-
-
+
+ Info card
+ {!editing && (
+ setEditing(true)}>
+
+
+ )}
+
+
save(values)}
+ onReset={() => {
+ setEditing(false)
+ setError(null)
+ }}>
+
+
>
)
}
diff --git a/new-lamassu-admin/src/styling/icons/table/false.svg b/new-lamassu-admin/src/styling/icons/table/false.svg
index a02a1344..4d44d93f 100644
--- a/new-lamassu-admin/src/styling/icons/table/false.svg
+++ b/new-lamassu-admin/src/styling/icons/table/false.svg
@@ -1,11 +1,12 @@
-