diff --git a/new-lamassu-admin/src/components/Modal.jsx b/new-lamassu-admin/src/components/Modal.jsx index 147a144b..ad750571 100644 --- a/new-lamassu-admin/src/components/Modal.jsx +++ b/new-lamassu-admin/src/components/Modal.jsx @@ -53,7 +53,7 @@ const styles = { padding: xl ? [[0, 60 + 28]] : small ? [[0, 16]] : [[0, 32]] }), button: ({ small, xl }) => ({ - padding: [[0, 0, xl ? 26 : 0, 0]], + padding: [[0, 0, 0, 0]], margin: xl ? [[0, 0, 'auto', 'auto']] : small diff --git a/new-lamassu-admin/src/pages/Wizard/Radio.module.css b/new-lamassu-admin/src/pages/Wizard/Radio.module.css new file mode 100644 index 00000000..c8f40da2 --- /dev/null +++ b/new-lamassu-admin/src/pages/Wizard/Radio.module.css @@ -0,0 +1,43 @@ +.radioGroup { + flex-direction: row; + width: 600px; +} + +.radioLabel { + width: 150px; + height: 48px; +} + +.mailgunRadioGroup { + flex-direction: row; + width: 768px; +} + +.mailgunRadioLabel { + width: 300px; + height: 48px; +} + +.mdForm { + width: 385px; +} + +.infoMessage { + display: flex; + margin-bottom: 20px; +} + +.infoMessage > p { + width: 330px; + margin-top: 4px; + margin-left: 16px; +} + +.actionButton { + margin-bottom: 32px; +} + +.actionButtonLink { + text-decoration: none; + color: var(--zodiac); +} diff --git a/new-lamassu-admin/src/pages/Wizard/Radio.styles.js b/new-lamassu-admin/src/pages/Wizard/Radio.styles.js deleted file mode 100644 index 85975f70..00000000 --- a/new-lamassu-admin/src/pages/Wizard/Radio.styles.js +++ /dev/null @@ -1,33 +0,0 @@ -import { spacer, primaryColor } from 'src/styling/variables' - -const LABEL_WIDTH = 150 - -export default { - radioGroup: { - flexDirection: 'row', - width: 600 - }, - radioLabel: { - width: LABEL_WIDTH, - height: 48 - }, - mdForm: { - width: 385 - }, - infoMessage: { - display: 'flex', - marginBottom: 20, - '& > p': { - width: 330, - marginTop: 4, - marginLeft: 16 - } - }, - actionButton: { - marginBottom: spacer * 4 - }, - actionButtonLink: { - textDecoration: 'none', - color: primaryColor - } -} diff --git a/new-lamassu-admin/src/pages/Wizard/Wizard.jsx b/new-lamassu-admin/src/pages/Wizard/Wizard.jsx index e5b31f88..729ccbbf 100644 --- a/new-lamassu-admin/src/pages/Wizard/Wizard.jsx +++ b/new-lamassu-admin/src/pages/Wizard/Wizard.jsx @@ -1,36 +1,15 @@ import { useQuery, gql } from '@apollo/client' import Dialog from '@mui/material/Dialog' import DialogContent from '@mui/material/DialogContent' -import { makeStyles } from '@mui/styles' import classnames from 'classnames' import React, { useState, useContext } from 'react' import { useHistory } from 'react-router-dom' import { getWizardStep, STEPS } from 'src/pages/Wizard/helper' import AppContext from 'src/AppContext' -import { backgroundColor } from 'src/styling/variables' import Footer from './components/Footer' -const useStyles = makeStyles({ - wrapper: { - display: 'flex', - padding: [[16, 0]], - flexDirection: 'column', - justifyContent: 'space-between', - backgroundColor: backgroundColor - }, - welcomeBackground: { - background: 'url(/wizard-background.svg) no-repeat center center fixed', - backgroundColor: backgroundColor, - backgroundSize: 'cover' - }, - blurred: { - filter: 'blur(4px)', - pointerEvents: 'none' - } -}) - const GET_DATA = gql` query getData { config @@ -43,7 +22,6 @@ const GET_DATA = gql` ` const Wizard = ({ fromAuthRegister }) => { - const classes = useStyles() const { data, loading } = useQuery(GET_DATA) const history = useHistory() const { setWizardTested } = useContext(AppContext) @@ -68,11 +46,6 @@ const Wizard = ({ fromAuthRegister }) => { } const isWelcome = step === 0 - const classNames = { - [classes.blurred]: footerExp, - [classes.wrapper]: true, - [classes.welcomeBackground]: isWelcome - } const start = () => { setFooterExp(false) @@ -91,6 +64,12 @@ const Wizard = ({ fromAuthRegister }) => { } const current = STEPS[step] + const classNames = { + 'flex flex-col justify-between py-4 px-0 bg-white': true, + 'bg-[url(/wizard-background.svg)] bg-no-repeat bg-center bg-fixed bg-cover': + isWelcome, + 'blur-sm pointer-events-none': footerExp + } return ( diff --git a/new-lamassu-admin/src/pages/Wizard/components/Commissions.jsx b/new-lamassu-admin/src/pages/Wizard/components/Commissions.jsx index f82c4ed4..b4f6f95b 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Commissions.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Commissions.jsx @@ -1,5 +1,4 @@ -import { useQuery, useMutation, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' +import { useQuery, useMutation, gql } from '@apollo/client' import * as R from 'ramda' import React from 'react' import Section from 'src/components/layout/Section' @@ -7,16 +6,8 @@ import TitleSection from 'src/components/layout/TitleSection' import { mainFields, defaults, getSchema } from 'src/pages/Commissions/helper' import { Table as EditableTable } from 'src/components/editableTable' -import styles from 'src/pages/AddMachine/styles' import { fromNamespace, toNamespace, namespaces } from 'src/utils/config' -const useStyles = makeStyles(styles) -const useCommissionStyles = makeStyles({ - autoComplete: { - width: '100%' - } -}) - const GET_DATA = gql` query getData { config @@ -29,8 +20,6 @@ const SAVE_CONFIG = gql` ` function Commissions({ isActive, doContinue }) { - const classes = useStyles() - const commissionClasses = useCommissionStyles() const { data } = useQuery(GET_DATA) const [saveConfig] = useMutation(SAVE_CONFIG, { @@ -49,7 +38,7 @@ function Commissions({ isActive, doContinue }) { const locale = fromNamespace(namespaces.LOCALE)(data?.config) return ( -
+
diff --git a/new-lamassu-admin/src/pages/Wizard/components/Footer.jsx b/new-lamassu-admin/src/pages/Wizard/components/Footer.jsx index 6a0c005c..42fce5c4 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Footer.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Footer.jsx @@ -1,60 +1,27 @@ import Drawer from '@mui/material/Drawer' import Grid from '@mui/material/Grid' -import { makeStyles } from '@mui/styles' -import classnames from 'classnames' import React, { useState } from 'react' import Modal from 'src/components/Modal' import Stepper from 'src/components/Stepper' import { P, H2, Info2 } from 'src/components/typography' import { Button, Link } from 'src/components/buttons' -import { spacer } from 'src/styling/variables' - -const useStyles = makeStyles(() => ({ - drawer: { - borderTop: 'none', - boxShadow: '0 0 4px 0 rgba(0, 0, 0, 0.08)' - }, - wrapper: { - padding: '32px 0', - flexGrow: 1, - height: 264 - }, - smallWrapper: { - height: 84 - }, - title: { - margin: [[0, spacer * 4, 0, 0]] - }, - subtitle: { - marginTop: spacer, - marginBottom: 6, - lineHeight: 1.25, - display: 'inline' - }, - modal: { - background: 'none', - boxShadow: 'none' - } -})) function Footer({ currentStep, steps, subtitle, text, exImage, open, start }) { - const classes = useStyles() const [fullExample, setFullExample] = useState(false) - const wrapperClassNames = { - [classes.wrapper]: true, - [classes.smallWrapper]: !open - } - return ( -
- + classes={{ paperAnchorDockedBottom: 'border-t-0 shadow-sm' }}> +
+ -

Setup Lamassu Admin

- {subtitle} +

Setup Lamassu Admin

+ {subtitle} {open &&

{text}

}
{ @@ -131,7 +98,7 @@ function Footer({ currentStep, steps, subtitle, text, exImage, open, start }) { - ); + ) } export default Footer diff --git a/new-lamassu-admin/src/pages/Wizard/components/Locales.jsx b/new-lamassu-admin/src/pages/Wizard/components/Locales.jsx index e35b83f4..8ed67674 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Locales.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Locales.jsx @@ -1,12 +1,10 @@ -import { useQuery, useMutation, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' +import { useQuery, useMutation, gql } from '@apollo/client' import * as R from 'ramda' import React from 'react' import Section from 'src/components/layout/Section' import TitleSection from 'src/components/layout/TitleSection' import { Table as EditableTable } from 'src/components/editableTable' -import styles from 'src/pages/AddMachine/styles' import { mainFields, localeDefaults as defaults, @@ -16,8 +14,6 @@ import { toNamespace } from 'src/utils/config' import { getConfiguredCoins } from '../helper' -const useStyles = makeStyles(styles) - const GET_DATA = gql` query getData { config @@ -52,7 +48,6 @@ const SAVE_CONFIG = gql` ` function Locales({ isActive, doContinue }) { - const classes = useStyles() const { data } = useQuery(GET_DATA) const [saveConfig] = useMutation(SAVE_CONFIG, { @@ -72,7 +67,7 @@ function Locales({ isActive, doContinue }) { const onChangeCoin = (prev, curr, setValue) => setValue(curr) return ( -
+
diff --git a/new-lamassu-admin/src/pages/Wizard/components/Mailgun.jsx b/new-lamassu-admin/src/pages/Wizard/components/Mailgun.jsx index fc07996d..b467a12b 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Mailgun.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Mailgun.jsx @@ -1,5 +1,4 @@ import { useMutation, useQuery, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' import React, { useState, useEffect } from 'react' import { H4, Info3 } from 'src/components/typography' import FormRenderer from 'src/pages/Services/FormRenderer' @@ -10,21 +9,9 @@ import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react' import { ActionButton } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs' import mailgunSchema from 'src/pages/Services/schemas/mailgun' -import styles from 'src/pages/Wizard/Radio.styles' +import classes from 'src/pages/Wizard/Radio.module.css' import { fromNamespace, toNamespace, namespaces } from 'src/utils/config' -const useStyles = makeStyles({ - ...styles, - radioGroup: { - ...styles.radioGroup, - width: 768 - }, - radioLabel: { - ...styles.radioLabel, - width: 300 - } -}) - const GET_CONFIG = gql` { config @@ -55,7 +42,6 @@ const options = [ ] const Mailgun = () => { - const classes = useStyles() const { data } = useQuery(GET_CONFIG) const [saveConfig] = useMutation(SAVE_CONFIG) const [saveAccounts] = useMutation(SAVE_ACCOUNTS) @@ -90,8 +76,8 @@ const Mailgun = () => {

Do you want to get notifications via email?

handleRadio(event.target.value)} diff --git a/new-lamassu-admin/src/pages/Wizard/components/Notifications.jsx b/new-lamassu-admin/src/pages/Wizard/components/Notifications.jsx index 6506312c..b547f0ca 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Notifications.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Notifications.jsx @@ -1,29 +1,13 @@ -import { makeStyles } from '@mui/styles' import Grid from '@mui/material/Grid' import React, { useState } from 'react' import Sidebar from 'src/components/layout/Sidebar' import TitleSection from 'src/components/layout/TitleSection' import Notifications from 'src/pages/Notifications/Notifications' -import addMachineStyles from 'src/pages/AddMachine/styles' import { namespaces } from 'src/utils/config' import Mailgun from './Mailgun' -const styles = { - ...addMachineStyles, - grid: { - flex: 1, - height: '100%' - }, - content: { - marginLeft: 48, - paddingTop: 15 - } -} - -const useStyles = makeStyles(styles) - const EMAIL = 'Email' const SETUP_CHANNELS = 'Setup channels' const TRANSACTION_ALERTS = 'Transaction alerts' @@ -40,21 +24,20 @@ const pages = [ const N = () => { const [selected, setSelected] = useState(EMAIL) - const classes = useStyles() const isSelected = it => selected === it return ( -
+
- + it} onClick={it => setSelected(it)} /> -
+
{isSelected(EMAIL) && } {isSelected(SETUP_CHANNELS) && ( +
{/* */}
) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Twilio.jsx b/new-lamassu-admin/src/pages/Wizard/components/Twilio.jsx index 58526ab5..0b00f2b4 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Twilio.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Twilio.jsx @@ -1,5 +1,4 @@ import { useMutation, useQuery, gql } from '@apollo/client' -import { makeStyles } from '@mui/styles' import classnames from 'classnames' import React, { useState } from 'react' import { HelpTooltip } from 'src/components/Tooltip' @@ -11,7 +10,8 @@ import { Button, SupportLinkButton } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs' import twilio from 'src/pages/Services/schemas/twilio' -import styles from './Wallet/Shared.styles' +import sharedClasses from './Wallet/Shared.module.css' +import classes from './Twilio.module.css' const GET_CONFIG = gql` { @@ -26,30 +26,6 @@ const SAVE_ACCOUNTS = gql` } ` -const useStyles = makeStyles({ - ...styles, - content: { - width: 820 - }, - radioLabel: { - ...styles.radioLabel, - width: 280 - }, - wrapper: { - width: 1200, - height: 100, - margin: [[0, 'auto']] - }, - title: { - marginLeft: 8, - marginBottom: 5 - }, - info: { - marginTop: 20, - marginBottom: 20 - } -}) - const options = [ { code: 'enable', @@ -62,7 +38,6 @@ const options = [ ] function Twilio({ doContinue }) { - const classes = useStyles() const [selected, setSelected] = useState(null) const [error, setError] = useState(false) @@ -89,8 +64,8 @@ function Twilio({ doContinue }) { } const titleClasses = { - [classes.title]: true, - [classes.error]: error + 'ml-2 mb-2': true, + [sharedClasses.error]: error } return ( @@ -115,7 +90,7 @@ function Twilio({ doContinue }) { )} {selected !== 'enable' && ( - )} diff --git a/new-lamassu-admin/src/pages/Wizard/components/Twilio.module.css b/new-lamassu-admin/src/pages/Wizard/components/Twilio.module.css new file mode 100644 index 00000000..30bd9e37 --- /dev/null +++ b/new-lamassu-admin/src/pages/Wizard/components/Twilio.module.css @@ -0,0 +1,24 @@ +.content { + width: 820px; +} + +.radioLabel { + width: 280px; + height: 48px; +} + +.wrapper { + width: 1200px; + height: 100px; + margin: 0 auto; +} + +.title { + margin-left: 8px; + margin-bottom: 5px; +} + +.info { + margin-top: 20px; + margin-bottom: 20px; +} \ No newline at end of file diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.jsx index fd5ca065..f2c59217 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.jsx @@ -1,5 +1,4 @@ import { useQuery, useMutation, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' import * as R from 'ramda' import React, { useState } from 'react' import { P, H4 } from 'src/components/typography' @@ -9,9 +8,7 @@ import { Button } from 'src/components/buttons' import { NamespacedTable as EditableTable } from 'src/components/editableTable' import { toNamespace, namespaces } from 'src/utils/config' -import styles from './Shared.styles' - -const useStyles = makeStyles(styles) +import classes from './Shared.module.css' const GET_INFO = gql` query getData { config @@ -37,8 +34,6 @@ const SAVE_CONFIG = gql` ` const AllSet = ({ data: currentData, doContinue }) => { - const classes = useStyles() - const { data } = useQuery(GET_INFO) const [saveConfig] = useMutation(SAVE_CONFIG, { onCompleted: doContinue diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Blockcypher.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Blockcypher.jsx index a5d2605f..3cf99128 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Blockcypher.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Blockcypher.jsx @@ -1,5 +1,4 @@ import { useMutation, useQuery, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' import React, { useState } from 'react' import { P, H4 } from 'src/components/typography' import FormRenderer from 'src/pages/Services/FormRenderer' @@ -8,16 +7,7 @@ import { SupportLinkButton, Button } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs' import blockcypherSchema from 'src/pages/Services/schemas/blockcypher' -import styles from './Shared.styles' - -const useStyles = makeStyles({ - ...styles, - radioGroup: styles.radioGroup, - radioLabel: { - ...styles.radioLabel, - width: 200 - } -}) +import classes from './Shared.module.css' const GET_CONFIG = gql` { @@ -42,8 +32,6 @@ const options = [ ] const Blockcypher = ({ addData }) => { - const classes = useStyles() - const { data } = useQuery(GET_CONFIG) const [saveConfig] = useMutation(SAVE_ACCOUNTS, { onCompleted: () => addData({ zeroConf: 'blockcypher' }) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseCoin.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseCoin.jsx index 0216bed3..adeb32b4 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseCoin.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseCoin.jsx @@ -1,5 +1,4 @@ import { useQuery, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' import { Formik, Form, Field } from 'formik' import React, { useState } from 'react' import PromptWhenDirty from 'src/components/PromptWhenDirty' @@ -9,9 +8,7 @@ import * as Yup from 'yup' import { Button } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs/formik' -import styles from './Shared.styles' - -const useStyles = makeStyles(styles) +import classes from './Shared.module.css' const GET_CONFIG = gql` { @@ -27,7 +24,6 @@ const schema = Yup.object().shape({ }) const ChooseCoin = ({ addData }) => { - const classes = useStyles() const [error, setError] = useState(false) const { data } = useQuery(GET_CONFIG) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseExchange.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseExchange.jsx index cb117b79..4a5df8d9 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseExchange.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseExchange.jsx @@ -1,6 +1,5 @@ import { useQuery, useMutation, gql } from "@apollo/client"; import { getEquivalentCode } from '@lamassu/coins/lightUtils' -import { makeStyles } from '@mui/styles' import * as R from 'ramda' import React, { useState } from 'react' import { H4, Info3 } from 'src/components/typography' @@ -11,11 +10,9 @@ import { Button, SupportLinkButton } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs' import _schema from 'src/pages/Services/schemas' -import styles from './Shared.styles' +import classes from './Shared.module.css' import { getItems } from './getItems' -const useStyles = makeStyles(styles) - const GET_CONFIG = gql` { accounts @@ -42,7 +39,6 @@ const isConfigurable = it => !R.isNil(it) && !R.contains(it)(['mock-exchange', 'no-exchange']) const ChooseExchange = ({ data: currentData, addData }) => { - const classes = useStyles() const { data } = useQuery(GET_CONFIG) const [saveAccounts] = useMutation(SAVE_ACCOUNTS, { onCompleted: () => submit() diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseTicker.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseTicker.jsx index 89e9d646..23c73a23 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseTicker.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseTicker.jsx @@ -1,6 +1,5 @@ import { useQuery, gql } from "@apollo/client"; import { getEquivalentCode } from '@lamassu/coins/lightUtils' -import { makeStyles } from '@mui/styles' import * as R from 'ramda' import React, { useState } from 'react' import { H4 } from 'src/components/typography' @@ -8,11 +7,9 @@ import { H4 } from 'src/components/typography' import { Button } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs' -import styles from './Shared.styles' +import classes from './Shared.module.css' import { getItems } from './getItems' -const useStyles = makeStyles(styles) - const GET_CONFIG = gql` { accountsConfig { @@ -25,7 +22,6 @@ const GET_CONFIG = gql` ` const ChooseTicker = ({ data: currentData, addData }) => { - const classes = useStyles() const { data } = useQuery(GET_CONFIG) const [selected, setSelected] = useState(null) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseWallet.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseWallet.jsx index 64c6d0d7..e898d4d4 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseWallet.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseWallet.jsx @@ -1,5 +1,4 @@ import { useQuery, useMutation, gql } from "@apollo/client"; -import { makeStyles } from '@mui/styles' import * as R from 'ramda' import React, { useState } from 'react' import { H4, Info3 } from 'src/components/typography' @@ -11,11 +10,9 @@ import { RadioGroup } from 'src/components/inputs' import _schema from 'src/pages/Services/schemas' import bitgo from 'src/pages/Services/schemas/singlebitgo' -import styles from './Shared.styles' +import classes from './Shared.module.css' import { getItems } from './getItems' -const useStyles = makeStyles(styles) - const GET_CONFIG = gql` { accounts @@ -52,7 +49,6 @@ const isLocalHosted = it => ]) const ChooseWallet = ({ data: currentData, addData }) => { - const classes = useStyles() // no need to fetch exchange config here const schema = _schema() const { data } = useQuery(GET_CONFIG) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.module.css b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.module.css new file mode 100644 index 00000000..c52d200d --- /dev/null +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.module.css @@ -0,0 +1,45 @@ +.radioGroup { + flex-direction: row; + width: 600px; +} + +.radioLabel { + width: 150px; + height: 48px; +} + +.mdForm { + width: 385px; +} + +.infoMessage { + display: flex; + margin-bottom: 20px; +} + +.infoMessage > p { + width: 330px; + margin-top: 4px; + margin-left: 16px; +} + +.actionButton { + margin-bottom: 32px; +} + +.actionButtonLink { + text-decoration: none; + color: var(--zodiac); +} + +.error { + color: var(--tomato); +} + +.button { + margin-top: 40px; +} + +.formButton { + margin: 24px 0 0; +} \ No newline at end of file diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.styles.js b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.styles.js deleted file mode 100644 index 4af8b17a..00000000 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Shared.styles.js +++ /dev/null @@ -1,42 +0,0 @@ -import { errorColor, spacer, primaryColor } from 'src/styling/variables' - -const LABEL_WIDTH = 150 - -export default { - radioGroup: { - flexDirection: 'row', - width: 600 - }, - radioLabel: { - width: LABEL_WIDTH, - height: 48 - }, - mdForm: { - width: 385 - }, - infoMessage: { - display: 'flex', - marginBottom: 20, - '& > p': { - width: 330, - marginTop: 4, - marginLeft: 16 - } - }, - actionButton: { - marginBottom: spacer * 4 - }, - actionButtonLink: { - textDecoration: 'none', - color: primaryColor - }, - error: { - color: errorColor - }, - button: { - marginTop: spacer * 5 - }, - formButton: { - margin: [[spacer * 3, 0, 0]] - } -} diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Wallet.jsx b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Wallet.jsx index 337bb4e7..0580b673 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/Wallet.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/Wallet.jsx @@ -1,11 +1,8 @@ -import { makeStyles } from '@mui/styles' import * as R from 'ramda' import React, { useState } from 'react' import Sidebar, { Stepper } from 'src/components/layout/Sidebar' import TitleSection from 'src/components/layout/TitleSection' -import styles from 'src/pages/AddMachine/styles' - import AllSet from './AllSet' import Blockcypher from './Blockcypher' import ChooseCoin from './ChooseCoin' @@ -13,8 +10,6 @@ import ChooseExchange from './ChooseExchange' import ChooseTicker from './ChooseTicker' import ChooseWallet from './ChooseWallet' -const useStyles = makeStyles(styles) - const steps = [ { label: 'Choose cryptocurrency', @@ -46,7 +41,6 @@ const Wallet = ({ doContinue }) => { const [step, setStep] = useState(0) const [data, setData] = useState({}) - const classes = useStyles() const mySteps = data?.coin === 'BTC' ? steps : R.remove(4, 1, steps) const Component = mySteps[step].component @@ -57,17 +51,17 @@ const Wallet = ({ doContinue }) => { } return ( -
-
+
+
-
+
{mySteps.map((it, idx) => ( ))} -
+
diff --git a/new-lamassu-admin/src/pages/Wizard/components/Welcome.jsx b/new-lamassu-admin/src/pages/Wizard/components/Welcome.jsx index 221fe2a9..a970b212 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Welcome.jsx +++ b/new-lamassu-admin/src/pages/Wizard/components/Welcome.jsx @@ -1,36 +1,13 @@ -import { makeStyles } from '@mui/styles' import React from 'react' import { H1, P } from 'src/components/typography' import { Button } from 'src/components/buttons' -import { comet } from 'src/styling/variables' - -const styles = { - welcome: { - textAlign: 'center', - paddingTop: 256 - }, - title: { - lineHeight: 1, - fontSize: 48 - }, - getStarted: { - fontSize: 24, - fontWeight: 500, - marginBottom: 54, - color: comet - } -} - -const useStyles = makeStyles(styles) function Welcome({ doContinue }) { - const classes = useStyles() - return ( -
-

Welcome to the Lamassu Admin

-

+

+

Welcome to the Lamassu Admin

+

To get you started, we’ve put together a wizard that will
help set up what you need before pairing your machines. diff --git a/new-lamassu-admin/src/pages/Wizard/helper.jsx b/new-lamassu-admin/src/pages/Wizard/helper.jsx index 193caf12..47035521 100644 --- a/new-lamassu-admin/src/pages/Wizard/helper.jsx +++ b/new-lamassu-admin/src/pages/Wizard/helper.jsx @@ -8,8 +8,6 @@ import { fromNamespace, namespaces } from 'src/utils/config' import Commissions from './components/Commissions' import Locale from './components/Locales' -// import Notifications from './components/Notifications' -// import WizardOperatorInfo from './components/OperatorInfo' import Twilio from './components/Twilio' import Wallet from './components/Wallet/Wallet' import Welcome from './components/Welcome'