@@ -73,7 +77,9 @@ const Header = memo(({ tree }) => {
- {renderSubheader(active, classes)}
+ {active && active.children && (
+
+ )}
)
})
diff --git a/new-lamassu-admin/src/components/inputs/formik/index.js b/new-lamassu-admin/src/components/inputs/formik/index.js
index e2612932..66e1e1e2 100644
--- a/new-lamassu-admin/src/components/inputs/formik/index.js
+++ b/new-lamassu-admin/src/components/inputs/formik/index.js
@@ -1,3 +1,4 @@
import Checkbox from './Checkbox'
+import TextInput from './TextInput'
-export { Checkbox }
+export { Checkbox, TextInput }
diff --git a/new-lamassu-admin/src/pages/AddMachine/AddMachine.js b/new-lamassu-admin/src/pages/AddMachine/AddMachine.js
new file mode 100644
index 00000000..57b496d3
--- /dev/null
+++ b/new-lamassu-admin/src/pages/AddMachine/AddMachine.js
@@ -0,0 +1,200 @@
+import React, { memo, useState } from 'react'
+import QRCode from 'qrcode.react'
+import classnames from 'classnames'
+import { Form, Formik, FastField } from 'formik'
+import { makeStyles } from '@material-ui/core/styles'
+import * as Yup from 'yup'
+import { gql } from 'apollo-boost'
+import { useMutation } from '@apollo/react-hooks'
+import { Dialog, DialogContent, SvgIcon, IconButton } from '@material-ui/core'
+
+import { ReactComponent as CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg'
+import { ReactComponent as CurrentStageIconZodiac } from 'src/styling/icons/stage/zodiac/current.svg'
+import { ReactComponent as EmptyStageIconZodiac } from 'src/styling/icons/stage/zodiac/empty.svg'
+import { primaryColor } from 'src/styling/variables'
+import Title from 'src/components/Title'
+import Sidebar from 'src/components/Sidebar'
+import { Info2, P } from 'src/components/typography'
+import { TextInput } from 'src/components/inputs/formik'
+import { Button } from 'src/components/buttons'
+import { ReactComponent as WarningIcon } from 'src/styling/icons/warning-icon/comet.svg'
+import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
+
+import styles from './styles'
+
+const SAVE_CONFIG = gql`
+ mutation createPairingTotem($name: String!) {
+ createPairingTotem(name: $name)
+ }
+`
+
+const useStyles = makeStyles(styles)
+
+const QrCodeComponent = ({ classes, qrCode, close }) => {
+ const [doneButton, setDoneButton] = useState(null)
+ setTimeout(() => setDoneButton(true), 2000)
+
+ return (
+ <>
+
+ Scan QR code with your new cryptomat
+
+
+
+
+
+
+
+
+
+
+ To pair the machine you need scan the QR code with your machine. To
+ do this either snap a picture of this QR code or download it through
+ the button above and scan it with the scanning bay on your machine.
+