chore: stop using alias imports
This commit is contained in:
parent
ad7a2eac4e
commit
b48c590bc8
243 changed files with 1061 additions and 1080 deletions
|
|
@ -8,21 +8,21 @@ import { Form, Formik, FastField } from 'formik'
|
|||
import { QRCodeSVG as QRCode } from 'qrcode.react'
|
||||
import * as R from 'ramda'
|
||||
import React, { memo, useState, useEffect, useRef } from 'react'
|
||||
import Title from 'src/components/Title'
|
||||
import Sidebar from 'src/components/layout/Sidebar'
|
||||
import { Info2, P } from 'src/components/typography'
|
||||
import CameraIcon from 'src/styling/icons/ID/photo/zodiac.svg?react'
|
||||
import CloseIcon from 'src/styling/icons/action/close/zodiac.svg?react'
|
||||
import CompleteStageIconSpring from 'src/styling/icons/stage/spring/complete.svg?react'
|
||||
import CompleteStageIconZodiac from 'src/styling/icons/stage/zodiac/complete.svg?react'
|
||||
import CurrentStageIconZodiac from 'src/styling/icons/stage/zodiac/current.svg?react'
|
||||
import EmptyStageIconZodiac from 'src/styling/icons/stage/zodiac/empty.svg?react'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import Title from '../../components/Title'
|
||||
import Sidebar from '../../components/layout/Sidebar'
|
||||
import { Info2, P } from '../../components/typography'
|
||||
import CameraIcon from '../../styling/icons/ID/photo/zodiac.svg?react'
|
||||
import CloseIcon from '../../styling/icons/action/close/zodiac.svg?react'
|
||||
import CompleteStageIconSpring from '../../styling/icons/stage/spring/complete.svg?react'
|
||||
import CompleteStageIconZodiac from '../../styling/icons/stage/zodiac/complete.svg?react'
|
||||
import CurrentStageIconZodiac from '../../styling/icons/stage/zodiac/current.svg?react'
|
||||
import EmptyStageIconZodiac from '../../styling/icons/stage/zodiac/empty.svg?react'
|
||||
import WarningIcon from '../../styling/icons/warning-icon/comet.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { primaryColor } from 'src/styling/variables'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { TextInput } from '../../components/inputs/formik'
|
||||
import { primaryColor } from '../../styling/variables'
|
||||
|
||||
const SAVE_CONFIG = gql`
|
||||
mutation createPairingTotem($name: String!) {
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@ import { endOfToday } from 'date-fns'
|
|||
import { subDays, format, add, startOfWeek } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { Info2, P } from 'src/components/typography'
|
||||
import DownIcon from 'src/styling/icons/dashboard/down.svg?react'
|
||||
import EqualIcon from 'src/styling/icons/dashboard/equal.svg?react'
|
||||
import UpIcon from 'src/styling/icons/dashboard/up.svg?react'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { Info2, P } from '../../components/typography'
|
||||
import DownIcon from '../../styling/icons/dashboard/down.svg?react'
|
||||
import EqualIcon from '../../styling/icons/dashboard/equal.svg?react'
|
||||
import UpIcon from '../../styling/icons/dashboard/up.svg?react'
|
||||
|
||||
import { Select } from 'src/components/inputs'
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { DAY, WEEK, MONTH } from 'src/utils/time'
|
||||
import { Select } from '../../components/inputs'
|
||||
import { fromNamespace } from '../../utils/config'
|
||||
import { numberToFiatAmount } from '../../utils/number'
|
||||
import { DAY, WEEK, MONTH } from '../../utils/time'
|
||||
|
||||
import LegendEntry from './components/LegendEntry'
|
||||
import HourOfDayWrapper from './components/wrappers/HourOfDayWrapper'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react'
|
||||
import { P } from 'src/components/typography'
|
||||
import { P } from '../../../components/typography'
|
||||
|
||||
const LegendEntry = ({ IconElement, IconComponent, label }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import Paper from '@mui/material/Paper'
|
||||
import * as R from 'ramda'
|
||||
import React, { memo } from 'react'
|
||||
import { Info2, Label3, P } from 'src/components/typography'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import { Info2, Label3, P } from '../../../../components/typography'
|
||||
import TxInIcon from '../../../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { singularOrPlural } from 'src/utils/string'
|
||||
import { formatDate, formatDateNonUtc } from 'src/utils/timezones'
|
||||
import { numberToFiatAmount } from '../../../../utils/number'
|
||||
import { singularOrPlural } from '../../../../utils/string'
|
||||
import { formatDate, formatDateNonUtc } from '../../../../utils/timezones'
|
||||
|
||||
const GraphTooltip = ({
|
||||
coords,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { getTimezoneOffset } from 'date-fns-tz'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H2 } from 'src/components/typography'
|
||||
import { H2 } from '../../../../components/typography'
|
||||
|
||||
import { Select } from 'src/components/inputs'
|
||||
import { MINUTE } from 'src/utils/time'
|
||||
import { Select } from '../../../../components/inputs'
|
||||
import { MINUTE } from '../../../../utils/time'
|
||||
|
||||
import Graph from '../../graphs/Graph'
|
||||
import LegendEntry from '../LegendEntry'
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import Switch from '@mui/material/Switch'
|
||||
import React, { useState } from 'react'
|
||||
import { H2, Label1 } from 'src/components/typography'
|
||||
import { H2, Label1 } from '../../../../components/typography'
|
||||
|
||||
import { Select } from 'src/components/inputs'
|
||||
import { primaryColor } from 'src/styling/variables'
|
||||
import { Select } from '../../../../components/inputs'
|
||||
import { primaryColor } from '../../../../styling/variables'
|
||||
|
||||
import Graph from '../../graphs/Graph'
|
||||
import LegendEntry from '../LegendEntry'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H2 } from 'src/components/typography'
|
||||
import { H2 } from '../../../../components/typography'
|
||||
|
||||
import Graph from '../../graphs/Graph'
|
||||
import LegendEntry from '../LegendEntry'
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import Switch from '@mui/material/Switch'
|
||||
import React, { useState } from 'react'
|
||||
import { H2, Label1 } from 'src/components/typography'
|
||||
import { H2, Label1 } from '../../../../components/typography'
|
||||
|
||||
import { Select } from 'src/components/inputs'
|
||||
import { neon, java } from 'src/styling/variables'
|
||||
import { Select } from '../../../../components/inputs'
|
||||
import { neon, java } from '../../../../styling/variables'
|
||||
|
||||
import Graph from '../../graphs/Graph'
|
||||
import LegendEntry from '../LegendEntry'
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import {
|
|||
fontColor,
|
||||
fontSecondary,
|
||||
subheaderColor,
|
||||
} from 'src/styling/variables'
|
||||
import { MINUTE } from 'src/utils/time'
|
||||
import { toUtc } from 'src/utils/timezones'
|
||||
} from '../../../styling/variables'
|
||||
import { MINUTE } from '../../../utils/time'
|
||||
import { toUtc } from '../../../utils/timezones'
|
||||
|
||||
const Graph = ({
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ import {
|
|||
primaryColor,
|
||||
fontSecondary,
|
||||
subheaderColor,
|
||||
} from 'src/styling/variables'
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from 'src/utils/time'
|
||||
} from '../../../styling/variables'
|
||||
import { numberToFiatAmount } from '../../../utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from '../../../utils/time'
|
||||
|
||||
const Graph = ({
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import {
|
|||
primaryColor,
|
||||
fontSecondary,
|
||||
subheaderColor,
|
||||
} from 'src/styling/variables'
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from 'src/utils/time'
|
||||
} from '../../../styling/variables'
|
||||
import { numberToFiatAmount } from '../../../utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from '../../../utils/time'
|
||||
|
||||
const Graph = ({
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
subheaderDarkColor,
|
||||
fontColor,
|
||||
fontSecondary,
|
||||
} from 'src/styling/variables'
|
||||
} from '../../../styling/variables'
|
||||
|
||||
const Graph = ({ data, machines, currency }) => {
|
||||
const ref = useRef(null)
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import { useMutation, useLazyQuery, gql } from '@apollo/client'
|
|||
import { Form, Formik } from 'formik'
|
||||
import React, { useContext, useState } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { TL1, P } from 'src/components/typography'
|
||||
import { TL1, P } from '../../components/typography'
|
||||
|
||||
import AppContext from 'src/AppContext'
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { CodeInput } from 'src/components/inputs/base'
|
||||
import AppContext from '../../AppContext'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { CodeInput } from '../../components/inputs/base'
|
||||
|
||||
import { STATES } from './states'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import { startAssertion } from '@simplewebauthn/browser'
|
|||
import { Field, Form, Formik } from 'formik'
|
||||
import React, { useState, useContext } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { H2, Label2, P } from 'src/components/typography'
|
||||
import { H2, Label2, P } from '../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import AppContext from 'src/AppContext'
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Checkbox, TextInput } from 'src/components/inputs/formik'
|
||||
import AppContext from '../../AppContext'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { Checkbox, TextInput } from '../../components/inputs/formik'
|
||||
|
||||
const GET_USER_DATA = gql`
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import Paper from '@mui/material/Paper'
|
||||
import React, { useReducer } from 'react'
|
||||
import Logo from 'src/styling/icons/menu/logo.svg?react'
|
||||
import Logo from '../../styling/icons/menu/logo.svg?react'
|
||||
|
||||
import Input2FAState from './Input2FAState'
|
||||
import InputFIDOState from './InputFIDOState'
|
||||
|
|
|
|||
|
|
@ -3,12 +3,16 @@ import { startAssertion } from '@simplewebauthn/browser'
|
|||
import { Field, Form, Formik } from 'formik'
|
||||
import React, { useContext } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { Label3, P } from 'src/components/typography'
|
||||
import { Label3, P } from '../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import AppContext from 'src/AppContext'
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Checkbox, SecretInput, TextInput } from 'src/components/inputs/formik'
|
||||
import AppContext from '../../AppContext'
|
||||
import { Button } from '../../components/buttons'
|
||||
import {
|
||||
Checkbox,
|
||||
SecretInput,
|
||||
TextInput,
|
||||
} from '../../components/inputs/formik'
|
||||
|
||||
const LOGIN = gql`
|
||||
mutation login($username: String!, $password: String!) {
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ import Paper from '@mui/material/Paper'
|
|||
import { Field, Form, Formik } from 'formik'
|
||||
import React, { useReducer } from 'react'
|
||||
import { useLocation, useHistory } from 'react-router-dom'
|
||||
import { H2, Label3, P } from 'src/components/typography'
|
||||
import Logo from 'src/styling/icons/menu/logo.svg?react'
|
||||
import { H2, Label3, P } from '../../components/typography'
|
||||
import Logo from '../../styling/icons/menu/logo.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { SecretInput } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { SecretInput } from '../../components/inputs/formik'
|
||||
import classes from './Authentication.module.css'
|
||||
|
||||
const QueryParams = () => new URLSearchParams(useLocation().search)
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ import { Form, Formik } from 'formik'
|
|||
import { QRCodeSVG as QRCode } from 'qrcode.react'
|
||||
import React, { useReducer, useState } from 'react'
|
||||
import { useLocation, useHistory } from 'react-router-dom'
|
||||
import { H2, Label2, Label3, P } from 'src/components/typography'
|
||||
import Logo from 'src/styling/icons/menu/logo.svg?react'
|
||||
import { H2, Label2, Label3, P } from '../../components/typography'
|
||||
import Logo from '../../styling/icons/menu/logo.svg?react'
|
||||
|
||||
import { ActionButton, Button } from 'src/components/buttons'
|
||||
import { CodeInput } from 'src/components/inputs/base'
|
||||
import { primaryColor } from 'src/styling/variables'
|
||||
import { ActionButton, Button } from '../../components/buttons'
|
||||
import { CodeInput } from '../../components/inputs/base'
|
||||
import { primaryColor } from '../../styling/variables'
|
||||
|
||||
import classes from './Authentication.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ import Paper from '@mui/material/Paper'
|
|||
import { Field, Form, Formik } from 'formik'
|
||||
import React, { useState } from 'react'
|
||||
import { useLocation, useHistory } from 'react-router-dom'
|
||||
import { H2, Label3, P } from 'src/components/typography'
|
||||
import Logo from 'src/styling/icons/menu/logo.svg?react'
|
||||
import { H2, Label3, P } from '../../components/typography'
|
||||
import Logo from '../../styling/icons/menu/logo.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { SecretInput } from 'src/components/inputs/formik/'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { SecretInput } from '../../components/inputs/formik'
|
||||
|
||||
import classes from './Authentication.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import { Form, Formik } from 'formik'
|
|||
import { QRCodeSVG as QRCode } from 'qrcode.react'
|
||||
import React, { useContext, useState } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { Label3, P } from 'src/components/typography'
|
||||
import { Label3, P } from '../../components/typography'
|
||||
|
||||
import AppContext from 'src/AppContext'
|
||||
import { ActionButton, Button } from 'src/components/buttons'
|
||||
import { CodeInput } from 'src/components/inputs/base'
|
||||
import { primaryColor } from 'src/styling/variables'
|
||||
import AppContext from '../../AppContext'
|
||||
import { ActionButton, Button } from '../../components/buttons'
|
||||
import { CodeInput } from '../../components/inputs/base'
|
||||
import { primaryColor } from '../../styling/variables'
|
||||
|
||||
import classes from './Authentication.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -7,15 +7,15 @@ import SvgIcon from '@mui/material/SvgIcon'
|
|||
import IconButton from '@mui/material/IconButton'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { H2, Label2, P, Info3, Info2 } from 'src/components/typography'
|
||||
import CloseIcon from 'src/styling/icons/action/close/zodiac.svg?react'
|
||||
import ReverseSettingsIcon from 'src/styling/icons/circle buttons/settings/white.svg?react'
|
||||
import SettingsIcon from 'src/styling/icons/circle buttons/settings/zodiac.svg?react'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { H2, Label2, P, Info3, Info2 } from '../../components/typography'
|
||||
import CloseIcon from '../../styling/icons/action/close/zodiac.svg?react'
|
||||
import ReverseSettingsIcon from '../../styling/icons/circle buttons/settings/white.svg?react'
|
||||
import SettingsIcon from '../../styling/icons/circle buttons/settings/zodiac.svg?react'
|
||||
|
||||
import { Link, Button, SupportLinkButton } from 'src/components/buttons'
|
||||
import { fromNamespace, toNamespace } from 'src/utils/config'
|
||||
import { Link, Button, SupportLinkButton } from '../../components/buttons'
|
||||
import { fromNamespace, toNamespace } from '../../utils/config'
|
||||
|
||||
import BlackListAdvanced from './BlacklistAdvanced'
|
||||
import BlackListModal from './BlacklistModal'
|
||||
|
|
|
|||
|
|
@ -3,18 +3,18 @@ import SvgIcon from '@mui/material/SvgIcon'
|
|||
import { Form, Formik, Field } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import DisabledDeleteIcon from 'src/styling/icons/action/delete/disabled.svg?react'
|
||||
import DeleteIcon from 'src/styling/icons/action/delete/enabled.svg?react'
|
||||
import EditIcon from 'src/styling/icons/action/edit/enabled.svg?react'
|
||||
import DefaultIconReverse from 'src/styling/icons/button/retry/white.svg?react'
|
||||
import DefaultIcon from 'src/styling/icons/button/retry/zodiac.svg?react'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Modal from '../../components/Modal'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import DisabledDeleteIcon from '../../styling/icons/action/delete/disabled.svg?react'
|
||||
import DeleteIcon from '../../styling/icons/action/delete/enabled.svg?react'
|
||||
import EditIcon from '../../styling/icons/action/edit/enabled.svg?react'
|
||||
import DefaultIconReverse from '../../styling/icons/button/retry/white.svg?react'
|
||||
import DefaultIcon from '../../styling/icons/button/retry/zodiac.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { ActionButton, Button } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { ActionButton, Button } from '../../components/buttons'
|
||||
import { TextInput } from '../../components/inputs/formik'
|
||||
|
||||
const DEFAULT_MESSAGE = `This address may be associated with a deceptive offer or a prohibited group. Please make sure you're using an address from your own wallet.`
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import { Formik, Form, Field } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { H3 } from 'src/components/typography'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Modal from '../../components/Modal'
|
||||
import { H3 } from '../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Link } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { Link } from '../../components/buttons'
|
||||
import { TextInput } from '../../components/inputs/formik'
|
||||
|
||||
const BlackListModal = ({ onClose, addToBlacklist, errorMsg }) => {
|
||||
const handleAddToBlacklist = address => {
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ import IconButton from '@mui/material/IconButton'
|
|||
import SvgIcon from '@mui/material/SvgIcon'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { DeleteDialog } from 'src/components/DeleteDialog'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import CopyToClipboard from 'src/components/CopyToClipboard.jsx'
|
||||
import DeleteIcon from 'src/styling/icons/action/delete/enabled.svg?react'
|
||||
import { DeleteDialog } from '../../components/DeleteDialog'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import CopyToClipboard from '../../components/CopyToClipboard.jsx'
|
||||
import DeleteIcon from '../../styling/icons/action/delete/enabled.svg?react'
|
||||
|
||||
const BlacklistTable = ({
|
||||
data,
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import { useQuery, useMutation, gql } from '@apollo/client'
|
|||
import Switch from '@mui/material/Switch'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { P, Label2 } from 'src/components/typography'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { P, Label2 } from '../../components/typography'
|
||||
|
||||
import { SupportLinkButton } from 'src/components/buttons'
|
||||
import { NamespacedTable as EditableTable } from 'src/components/editableTable'
|
||||
import { EmptyTable } from 'src/components/table'
|
||||
import { fromNamespace, toNamespace } from 'src/utils/config'
|
||||
import { SupportLinkButton } from '../../components/buttons'
|
||||
import { NamespacedTable as EditableTable } from '../../components/editableTable'
|
||||
import { EmptyTable } from '../../components/table'
|
||||
import { fromNamespace, toNamespace } from '../../utils/config'
|
||||
|
||||
import Wizard from './Wizard'
|
||||
import { DenominationsSchema, getElements } from './helper'
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import Modal from 'src/components/Modal'
|
||||
import Modal from '../../components/Modal'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Autocomplete } from 'src/components/inputs/formik'
|
||||
import denominations from 'src/utils/bill-denominations'
|
||||
import { getBillOptions } from 'src/utils/bill-options'
|
||||
import { toNamespace } from 'src/utils/config'
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { Autocomplete } from '../../components/inputs/formik'
|
||||
import denominations from '../../utils/bill-denominations'
|
||||
import { getBillOptions } from '../../utils/bill-options'
|
||||
import { toNamespace } from '../../utils/config'
|
||||
import { transformNumber } from '../../utils/number'
|
||||
|
||||
import WizardSplash from './WizardSplash'
|
||||
import WizardStep from './WizardStep'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import React from 'react'
|
||||
import { H1, P, Info2 } from 'src/components/typography'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import { H1, P, Info2 } from '../../components/typography'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Button } from '../../components/buttons'
|
||||
|
||||
const WizardSplash = ({ name, onContinue }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
import { Formik, Form, Field } from 'formik'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Stepper from 'src/components/Stepper'
|
||||
import { Info2, H4, P, Info1, Label1 } from 'src/components/typography'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Stepper from '../../components/Stepper'
|
||||
import { Info2, H4, P, Info1, Label1 } from '../../components/typography'
|
||||
import WarningIcon from '../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { NumberInput } from 'src/components/inputs/formik'
|
||||
import cassetteOne from 'src/styling/icons/cassettes/cashout-cassette-1.svg'
|
||||
import cassetteTwo from 'src/styling/icons/cassettes/cashout-cassette-2.svg'
|
||||
import tejo3CassetteOne from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-1-left.svg'
|
||||
import tejo3CassetteTwo from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-2-left.svg'
|
||||
import tejo3CassetteThree from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteOne from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-1-left.svg'
|
||||
import tejo4CassetteTwo from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-2-left.svg'
|
||||
import tejo4CassetteThree from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteFour from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-4-left.svg'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { NumberInput } from '../../components/inputs/formik'
|
||||
import cassetteOne from '../../styling/icons/cassettes/cashout-cassette-1.svg'
|
||||
import cassetteTwo from '../../styling/icons/cassettes/cashout-cassette-2.svg'
|
||||
import tejo3CassetteOne from '../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-1-left.svg'
|
||||
import tejo3CassetteTwo from '../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-2-left.svg'
|
||||
import tejo3CassetteThree from '../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteOne from '../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-1-left.svg'
|
||||
import tejo4CassetteTwo from '../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-2-left.svg'
|
||||
import tejo4CassetteThree from '../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteFour from '../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-4-left.svg'
|
||||
|
||||
const getCassetesArtworks = () => ({
|
||||
1: {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import * as R from 'ramda'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Autocomplete, NumberInput } from 'src/components/inputs/formik'
|
||||
import { bold } from 'src/styling/helpers'
|
||||
import denominations from 'src/utils/bill-denominations'
|
||||
import { getBillOptions } from 'src/utils/bill-options'
|
||||
import { CURRENCY_MAX } from 'src/utils/constants'
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { Autocomplete, NumberInput } from '../../components/inputs/formik'
|
||||
import { bold } from '../../styling/helpers'
|
||||
import denominations from '../../utils/bill-denominations'
|
||||
import { getBillOptions } from '../../utils/bill-options'
|
||||
import { CURRENCY_MAX } from '../../utils/constants'
|
||||
import { transformNumber } from '../../utils/number'
|
||||
|
||||
const widthsByNumberOfUnits = {
|
||||
2: { machine: 325, cassette: 340 },
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import ReverseListingViewIcon from 'src/styling/icons/circle buttons/listing-view/white.svg?react'
|
||||
import ListingViewIcon from 'src/styling/icons/circle buttons/listing-view/zodiac.svg?react'
|
||||
import OverrideLabelIcon from 'src/styling/icons/status/spring2.svg?react'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import ReverseListingViewIcon from '../../styling/icons/circle buttons/listing-view/white.svg?react'
|
||||
import ListingViewIcon from '../../styling/icons/circle buttons/listing-view/zodiac.svg?react'
|
||||
import OverrideLabelIcon from '../../styling/icons/status/spring2.svg?react'
|
||||
|
||||
import { SupportLinkButton } from 'src/components/buttons'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
import { SupportLinkButton } from '../../components/buttons'
|
||||
import { fromNamespace, toNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import { P } from '../../components/typography'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useState, memo } from 'react'
|
||||
import Section from 'src/components/layout/Section'
|
||||
import Section from '../../../components/layout/Section'
|
||||
import {
|
||||
mainFields,
|
||||
overrides,
|
||||
|
|
@ -9,9 +9,9 @@ import {
|
|||
defaults,
|
||||
overridesDefaults,
|
||||
getOrder,
|
||||
} from 'src/pages/Commissions/helper'
|
||||
} from '../helper'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { Table as EditableTable } from '../../../components/editableTable'
|
||||
|
||||
const CommissionsDetails = memo(
|
||||
({ config, locale, currency, data, error, save, saveOverrides }) => {
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ import {
|
|||
getCommissions,
|
||||
getListCommissionsSchema,
|
||||
commissionsList,
|
||||
} from 'src/pages/Commissions/helper'
|
||||
} from '../helper'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { Select } from 'src/components/inputs'
|
||||
import { Table as EditableTable } from '../../../components/editableTable'
|
||||
import { Select } from '../../../components/inputs'
|
||||
|
||||
const SHOW_ALL = {
|
||||
code: 'SHOW_ALL',
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Autocomplete, NumberInput } from 'src/components/inputs/formik'
|
||||
import { bold } from 'src/styling/helpers'
|
||||
import { primaryColor, secondaryColorDark } from 'src/styling/variables'
|
||||
import denominations from 'src/utils/bill-denominations'
|
||||
import { getBillOptions } from 'src/utils/bill-options'
|
||||
import { CURRENCY_MAX } from 'src/utils/constants'
|
||||
import { Autocomplete, NumberInput } from '../../components/inputs/formik'
|
||||
import { bold } from '../../styling/helpers'
|
||||
import { primaryColor, secondaryColorDark } from '../../styling/variables'
|
||||
import denominations from '../../utils/bill-denominations'
|
||||
import { getBillOptions } from '../../utils/bill-options'
|
||||
import { CURRENCY_MAX } from '../../utils/constants'
|
||||
|
||||
const ALL_MACHINES = {
|
||||
name: 'All Machines',
|
||||
|
|
|
|||
|
|
@ -1,18 +1,15 @@
|
|||
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 EditIcon from 'src/styling/icons/action/edit/comet.svg?react'
|
||||
import ImagePopper from '../../components/ImagePopper'
|
||||
import { H3, Info3 } from '../../components/typography'
|
||||
import CardIcon from '../../styling/icons/ID/card/comet.svg?react'
|
||||
import PhoneIcon from '../../styling/icons/ID/phone/comet.svg?react'
|
||||
import EditIcon from '../../styling/icons/action/edit/comet.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import {
|
||||
OVERRIDE_AUTHORIZED,
|
||||
OVERRIDE_REJECTED,
|
||||
} from 'src/pages/Customers/components/consts'
|
||||
import { onlyFirstToUpper } from 'src/utils/string'
|
||||
import { TextInput } from '../../components/inputs/formik'
|
||||
import { OVERRIDE_AUTHORIZED, OVERRIDE_REJECTED } from './components/consts'
|
||||
import { onlyFirstToUpper } from '../../utils/string'
|
||||
|
||||
import { EditableCard } from './components'
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as R from 'ramda'
|
||||
import { React, useState } from 'react'
|
||||
import { H3 } from 'src/components/typography'
|
||||
import { H3 } from '../../components/typography'
|
||||
|
||||
import NewNoteCard from './components/notes/NewNoteCard'
|
||||
import NewNoteModal from './components/notes/NewNoteModal'
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import Paper from '@mui/material/Paper'
|
|||
import { format } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import { React, useState } from 'react'
|
||||
import { InformativeDialog } from 'src/components/InformativeDialog'
|
||||
import { Label2, H3 } from 'src/components/typography'
|
||||
import CameraIcon from 'src/styling/icons/ID/photo/comet.svg?react'
|
||||
import { InformativeDialog } from '../../components/InformativeDialog'
|
||||
import { Label2, H3 } from '../../components/typography'
|
||||
import CameraIcon from '../../styling/icons/ID/photo/comet.svg?react'
|
||||
|
||||
import PhotosCarousel from './components/PhotosCarousel'
|
||||
|
||||
|
|
|
|||
|
|
@ -5,23 +5,20 @@ import NavigateNextIcon from '@mui/icons-material/NavigateNext'
|
|||
import * as R from 'ramda'
|
||||
import React, { memo, useState } from 'react'
|
||||
import { useHistory, useParams } from 'react-router-dom'
|
||||
import { Label1, Label2 } from 'src/components/typography'
|
||||
import AuthorizeReversedIcon from 'src/styling/icons/button/authorize/white.svg?react'
|
||||
import AuthorizeIcon from 'src/styling/icons/button/authorize/zodiac.svg?react'
|
||||
import BlockReversedIcon from 'src/styling/icons/button/block/white.svg?react'
|
||||
import BlockIcon from 'src/styling/icons/button/block/zodiac.svg?react'
|
||||
import DataReversedIcon from 'src/styling/icons/button/data/white.svg?react'
|
||||
import DataIcon from 'src/styling/icons/button/data/zodiac.svg?react'
|
||||
import { Label1, Label2 } from '../../components/typography'
|
||||
import AuthorizeReversedIcon from '../../styling/icons/button/authorize/white.svg?react'
|
||||
import AuthorizeIcon from '../../styling/icons/button/authorize/zodiac.svg?react'
|
||||
import BlockReversedIcon from '../../styling/icons/button/block/white.svg?react'
|
||||
import BlockIcon from '../../styling/icons/button/block/zodiac.svg?react'
|
||||
import DataReversedIcon from '../../styling/icons/button/data/white.svg?react'
|
||||
import DataIcon from '../../styling/icons/button/data/zodiac.svg?react'
|
||||
|
||||
import { ActionButton } from 'src/components/buttons'
|
||||
import {
|
||||
OVERRIDE_AUTHORIZED,
|
||||
OVERRIDE_REJECTED,
|
||||
} from 'src/pages/Customers/components/consts'
|
||||
import { ActionButton } from '../../components/buttons'
|
||||
import { OVERRIDE_AUTHORIZED, OVERRIDE_REJECTED } from './components/consts'
|
||||
// TODO: Enable for next release
|
||||
// import DiscountReversedIcon from 'src/styling/icons/button/discount/white.svg?react'
|
||||
// import Discount from 'src/styling/icons/button/discount/zodiac.svg?react'
|
||||
import { fromNamespace, namespaces } from 'src/utils/config'
|
||||
// import DiscountReversedIcon from '../../styling/icons/button/discount/white.svg?react'
|
||||
// import Discount from '../../styling/icons/button/discount/zodiac.svg?react'
|
||||
import { fromNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import CustomerData from './CustomerData'
|
||||
import CustomerNotes from './CustomerNotes'
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import { useQuery, useMutation, gql } from '@apollo/client'
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import SearchBox from 'src/components/SearchBox'
|
||||
import SearchFilter from 'src/components/SearchFilter'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import SearchBox from '../../components/SearchBox'
|
||||
import SearchFilter from '../../components/SearchFilter'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { Link } from 'src/components/buttons'
|
||||
import { fromNamespace, namespaces } from 'src/utils/config'
|
||||
import { Link } from '../../components/buttons'
|
||||
import { fromNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import CustomersList from './CustomersList'
|
||||
import CreateCustomerModal from './components/CreateCustomerModal'
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { format } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { MainStatus } from 'src/components/Status'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import { MainStatus } from '../../components/Status'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { getFormattedPhone, getName } from './helper'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { Form, Formik } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState, Fragment } from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import Stepper from 'src/components/Stepper'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Modal from '../../components/Modal'
|
||||
import Stepper from '../../components/Stepper'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Button } from '../../components/buttons'
|
||||
|
||||
import {
|
||||
entryType,
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ import { Field, Form, Formik } from 'formik'
|
|||
import { parsePhoneNumberWithError } from 'libphonenumber-js'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { H1 } from 'src/components/typography'
|
||||
import ErrorMessage from '../../../components/ErrorMessage'
|
||||
import Modal from '../../../components/Modal'
|
||||
import { H1 } from '../../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../../components/buttons'
|
||||
import { TextInput } from '../../../components/inputs/formik'
|
||||
|
||||
const getValidationSchema = countryCodes =>
|
||||
Yup.object().shape({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { memo } from 'react'
|
||||
import { H2, Label1, P } from 'src/components/typography'
|
||||
import IdIcon from 'src/styling/icons/ID/card/zodiac.svg?react'
|
||||
import { H2, Label1, P } from '../../../components/typography'
|
||||
import IdIcon from '../../../styling/icons/ID/card/zodiac.svg?react'
|
||||
|
||||
import { getFormattedPhone, getName } from '../helper'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import classnames from 'classnames'
|
||||
import React from 'react'
|
||||
import CustomerDataReversedIcon from 'src/styling/icons/customer-nav/data/comet.svg?react'
|
||||
import CustomerDataIcon from 'src/styling/icons/customer-nav/data/white.svg?react'
|
||||
import NoteReversedIcon from 'src/styling/icons/customer-nav/note/comet.svg?react'
|
||||
import NoteIcon from 'src/styling/icons/customer-nav/note/white.svg?react'
|
||||
import OverviewReversedIcon from 'src/styling/icons/customer-nav/overview/comet.svg?react'
|
||||
import OverviewIcon from 'src/styling/icons/customer-nav/overview/white.svg?react'
|
||||
import PhotosReversedIcon from 'src/styling/icons/customer-nav/photos/comet.svg?react'
|
||||
import Photos from 'src/styling/icons/customer-nav/photos/white.svg?react'
|
||||
import CustomerDataReversedIcon from '../../../styling/icons/customer-nav/data/comet.svg?react'
|
||||
import CustomerDataIcon from '../../../styling/icons/customer-nav/data/white.svg?react'
|
||||
import NoteReversedIcon from '../../../styling/icons/customer-nav/note/comet.svg?react'
|
||||
import NoteIcon from '../../../styling/icons/customer-nav/note/white.svg?react'
|
||||
import OverviewReversedIcon from '../../../styling/icons/customer-nav/overview/comet.svg?react'
|
||||
import OverviewIcon from '../../../styling/icons/customer-nav/overview/white.svg?react'
|
||||
import PhotosReversedIcon from '../../../styling/icons/customer-nav/photos/comet.svg?react'
|
||||
import Photos from '../../../styling/icons/customer-nav/photos/white.svg?react'
|
||||
|
||||
import { P } from '/src/components/typography/index.jsx'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,25 +3,22 @@ import Card from '@mui/material/Card'
|
|||
import { Form, Formik, Field as FormikField } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import { useState, React, useRef } from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import PromptWhenDirty from 'src/components/PromptWhenDirty'
|
||||
import { MainStatus } from 'src/components/Status'
|
||||
import { Label1, P, H3 } from 'src/components/typography'
|
||||
import EditIcon from 'src/styling/icons/action/edit/enabled.svg?react'
|
||||
import EditReversedIcon from 'src/styling/icons/action/edit/white.svg?react'
|
||||
import AuthorizeIcon from 'src/styling/icons/button/authorize/white.svg?react'
|
||||
import BlockIcon from 'src/styling/icons/button/block/white.svg?react'
|
||||
import CancelReversedIcon from 'src/styling/icons/button/cancel/white.svg?react'
|
||||
import DataReversedIcon from 'src/styling/icons/button/data/white.svg?react'
|
||||
import DataIcon from 'src/styling/icons/button/data/zodiac.svg?react'
|
||||
import ReplaceReversedIcon from 'src/styling/icons/button/replace/white.svg?react'
|
||||
import SaveReversedIcon from 'src/styling/icons/circle buttons/save/white.svg?react'
|
||||
import ErrorMessage from '../../../components/ErrorMessage'
|
||||
import PromptWhenDirty from '../../../components/PromptWhenDirty'
|
||||
import { MainStatus } from '../../../components/Status'
|
||||
import { Label1, P, H3 } from '../../../components/typography'
|
||||
import EditIcon from '../../../styling/icons/action/edit/enabled.svg?react'
|
||||
import EditReversedIcon from '../../../styling/icons/action/edit/white.svg?react'
|
||||
import AuthorizeIcon from '../../../styling/icons/button/authorize/white.svg?react'
|
||||
import BlockIcon from '../../../styling/icons/button/block/white.svg?react'
|
||||
import CancelReversedIcon from '../../../styling/icons/button/cancel/white.svg?react'
|
||||
import DataReversedIcon from '../../../styling/icons/button/data/white.svg?react'
|
||||
import DataIcon from '../../../styling/icons/button/data/zodiac.svg?react'
|
||||
import ReplaceReversedIcon from '../../../styling/icons/button/replace/white.svg?react'
|
||||
import SaveReversedIcon from '../../../styling/icons/circle buttons/save/white.svg?react'
|
||||
|
||||
import { ActionButton } from 'src/components/buttons'
|
||||
import {
|
||||
OVERRIDE_REJECTED,
|
||||
OVERRIDE_PENDING,
|
||||
} from 'src/pages/Customers/components/consts'
|
||||
import { ActionButton } from '../../../components/buttons'
|
||||
import { OVERRIDE_REJECTED, OVERRIDE_PENDING } from './consts'
|
||||
|
||||
const ReadOnlyField = ({ field, value }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import ButtonBase from '@mui/material/ButtonBase'
|
|||
import Paper from '@mui/material/Card'
|
||||
import * as R from 'ramda'
|
||||
import React, { memo, useState } from 'react'
|
||||
import { InformativeDialog } from 'src/components/InformativeDialog'
|
||||
import { Info2 } from 'src/components/typography'
|
||||
import CrossedCameraIcon from 'src/styling/icons/ID/photo/crossed-camera.svg?react'
|
||||
import { InformativeDialog } from '../../../components/InformativeDialog'
|
||||
import { Info2 } from '../../../components/typography'
|
||||
import CrossedCameraIcon from '../../../styling/icons/ID/photo/crossed-camera.svg?react'
|
||||
|
||||
import PhotosCarousel from './PhotosCarousel'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { memo, useState } from 'react'
|
||||
import { Carousel } from 'src/components/Carousel'
|
||||
import { Label1 } from 'src/components/typography'
|
||||
import { Carousel } from '../../../components/Carousel'
|
||||
import { Label1 } from '../../../components/typography'
|
||||
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { formatDate } from '../../../utils/timezones'
|
||||
|
||||
import CopyToClipboard from '../../../components/CopyToClipboard.jsx'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ import { toUnit } from '@lamassu/coins/lightUtils'
|
|||
import BigNumber from 'bignumber.js'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import { H3, H4, Label1, Label2, P } from 'src/components/typography'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import DataTable from '../../../components/tables/DataTable'
|
||||
import { H3, H4, Label1, Label2, P } from '../../../components/typography'
|
||||
import TxInIcon from '../../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { ifNotNull } from 'src/utils/nullCheck'
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { ifNotNull } from '../../../utils/nullCheck'
|
||||
import { formatDate } from '../../../utils/timezones'
|
||||
|
||||
import CopyToClipboard from '../../../components/CopyToClipboard.jsx'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { useFormikContext } from 'formik'
|
|||
import * as R from 'ramda'
|
||||
import React, { useState, useCallback } from 'react'
|
||||
import { useDropzone } from 'react-dropzone'
|
||||
import { Label3, H3 } from 'src/components/typography'
|
||||
import UploadPhotoIcon from 'src/styling/icons/button/photo/zodiac-resized.svg?react'
|
||||
import UploadFileIcon from 'src/styling/icons/button/upload-file/zodiac-resized.svg?react'
|
||||
import { Label3, H3 } from '../../../components/typography'
|
||||
import UploadPhotoIcon from '../../../styling/icons/button/photo/zodiac-resized.svg?react'
|
||||
import UploadFileIcon from '../../../styling/icons/button/upload-file/zodiac-resized.svg?react'
|
||||
|
||||
import classes from './Upload.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Paper from '@mui/material/Paper'
|
||||
import { React } from 'react'
|
||||
import { P } from 'src/components/typography'
|
||||
import AddIcon from 'src/styling/icons/button/add/zodiac.svg?react'
|
||||
import { P } from '../../../../components/typography'
|
||||
import AddIcon from '../../../../styling/icons/button/add/zodiac.svg?react'
|
||||
|
||||
const NewNoteCard = ({ setOpenModal }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { Form, Formik, Field } from 'formik'
|
||||
import { React } from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import ErrorMessage from '../../../../components/ErrorMessage'
|
||||
import Modal from '../../../../components/Modal'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../../../components/buttons'
|
||||
import { TextInput } from '../../../../components/inputs/formik'
|
||||
|
||||
const initialValues = {
|
||||
title: '',
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import Paper from '@mui/material/Paper'
|
||||
import * as R from 'ramda'
|
||||
import { React } from 'react'
|
||||
import { H3, P } from 'src/components/typography'
|
||||
import DeleteIcon from 'src/styling/icons/action/delete/enabled.svg?react'
|
||||
import { H3, P } from '../../../../components/typography'
|
||||
import DeleteIcon from '../../../../styling/icons/action/delete/enabled.svg?react'
|
||||
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { formatDate } from '../../../../utils/timezones'
|
||||
|
||||
const formatContent = content => {
|
||||
const fragments = R.split(/\n/)(content)
|
||||
|
|
|
|||
|
|
@ -2,16 +2,16 @@ import Paper from '@mui/material/Paper'
|
|||
import { formatDurationWithOptions, intervalToDuration } from 'date-fns/fp'
|
||||
import { Form, Formik, Field } from 'formik'
|
||||
import { React, useRef } from 'react'
|
||||
import { P } from 'src/components/typography'
|
||||
import CancelIconInverse from 'src/styling/icons/button/cancel/white.svg?react'
|
||||
import CancelIcon from 'src/styling/icons/button/cancel/zodiac.svg?react'
|
||||
import SaveIconInverse from 'src/styling/icons/circle buttons/save/white.svg?react'
|
||||
import SaveIcon from 'src/styling/icons/circle buttons/save/zodiac.svg?react'
|
||||
import { P } from '../../../../components/typography'
|
||||
import CancelIconInverse from '../../../../styling/icons/button/cancel/white.svg?react'
|
||||
import CancelIcon from '../../../../styling/icons/button/cancel/zodiac.svg?react'
|
||||
import SaveIconInverse from '../../../../styling/icons/circle buttons/save/white.svg?react'
|
||||
import SaveIcon from '../../../../styling/icons/circle buttons/save/zodiac.svg?react'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { ActionButton } from 'src/components/buttons'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { toTimezone } from 'src/utils/timezones'
|
||||
import { ActionButton } from '../../../../components/buttons'
|
||||
import { TextInput } from '../../../../components/inputs/formik'
|
||||
import { toTimezone } from '../../../../utils/timezones'
|
||||
|
||||
const NoteEdit = ({ note, cancel, edit, timezone }) => {
|
||||
const formRef = useRef()
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { parse, isValid, format } from 'date-fns/fp'
|
|||
import { Field, useFormikContext } from 'formik'
|
||||
import { parsePhoneNumberFromString } from 'libphonenumber-js'
|
||||
import * as R from 'ramda'
|
||||
import { H4 } from 'src/components/typography'
|
||||
import { H4 } from '../../components/typography'
|
||||
import { validate as uuidValidate } from 'uuid'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
|
|
@ -11,8 +11,8 @@ import {
|
|||
RadioGroup,
|
||||
TextInput,
|
||||
Autocomplete,
|
||||
} from 'src/components/inputs/formik'
|
||||
import { MANUAL } from 'src/utils/constants'
|
||||
} from '../../components/inputs/formik'
|
||||
import { MANUAL } from '../../utils/constants'
|
||||
|
||||
import { Upload } from './components'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import Grid from '@mui/material/Grid'
|
|||
import classnames from 'classnames'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { cardState } from 'src/components/CollapsibleCard'
|
||||
import { Label1, H4 } from 'src/components/typography'
|
||||
import { cardState } from '../../../components/CollapsibleCard'
|
||||
import { Label1, H4 } from '../../../components/typography'
|
||||
|
||||
import AlertsTable from './AlertsTable'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import ListItem from '@mui/material/ListItem'
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { P } from 'src/components/typography/index'
|
||||
import Wrench from 'src/styling/icons/action/wrench/zodiac.svg?react'
|
||||
import CashBoxEmpty from 'src/styling/icons/cassettes/cashbox-empty.svg?react'
|
||||
import AlertLinkIcon from 'src/styling/icons/month arrows/right.svg?react'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/tomato.svg?react'
|
||||
import { P } from '../../../components/typography/index'
|
||||
import Wrench from '../../../styling/icons/action/wrench/zodiac.svg?react'
|
||||
import CashBoxEmpty from '../../../styling/icons/cassettes/cashbox-empty.svg?react'
|
||||
import AlertLinkIcon from '../../../styling/icons/month arrows/right.svg?react'
|
||||
import WarningIcon from '../../../styling/icons/warning-icon/tomato.svg?react'
|
||||
|
||||
const icons = {
|
||||
error: <WarningIcon style={{ height: 20, width: 20, marginRight: 12 }} />,
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import { useQuery, gql } from '@apollo/client'
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { H1, Info2, TL2, Label1 } from 'src/components/typography'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { H1, Info2, TL2, Label1 } from '../../components/typography'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import AddMachine from 'src/pages/AddMachine'
|
||||
import { errorColor } from 'src/styling/variables'
|
||||
import { Button } from '../../components/buttons'
|
||||
import AddMachine from '../AddMachine'
|
||||
import { errorColor } from '../../styling/variables'
|
||||
|
||||
import Footer from './Footer'
|
||||
import RightSide from './RightSide'
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import { useQuery, gql } from '@apollo/client'
|
|||
import BigNumber from 'bignumber.js'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { Label2 } from 'src/components/typography'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import { Label2 } from '../../../components/typography'
|
||||
import TxInIcon from '../../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { fromNamespace } from '../../../utils/config'
|
||||
|
||||
import classes from './Footer.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import Button from '@mui/material/Button'
|
||||
import classnames from 'classnames'
|
||||
import React, { useState } from 'react'
|
||||
import CollapsibleCard, { cardState } from 'src/components/CollapsibleCard'
|
||||
import { H4, Label1 } from 'src/components/typography'
|
||||
import CollapsibleCard, { cardState } from '../../components/CollapsibleCard'
|
||||
import { H4, Label1 } from '../../components/typography'
|
||||
|
||||
import Alerts from './Alerts'
|
||||
import SystemStatus from './SystemStatus'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import classnames from 'classnames'
|
||||
import React from 'react'
|
||||
import { Label1 } from 'src/components/typography/index'
|
||||
import { Label1 } from '../../../../components/typography/index'
|
||||
|
||||
const PercentageChart = ({ cashIn, cashOut }) => {
|
||||
const value = cashIn || cashOut !== 0 ? cashIn : 50
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import { getTimezoneOffset } from 'date-fns-tz'
|
|||
import { add, format, startOfWeek, startOfYear } from 'date-fns/fp'
|
||||
import React, { useCallback, useEffect, useMemo, useRef } from 'react'
|
||||
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from 'src/utils/time'
|
||||
import { numberToFiatAmount } from '../../../../utils/number'
|
||||
import { MINUTE, DAY, WEEK, MONTH } from '../../../../utils/time'
|
||||
|
||||
const Graph = ({ data, timeFrame, timezone }) => {
|
||||
const ref = useRef(null)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react'
|
||||
import { Info1, Label1 } from 'src/components/typography/index'
|
||||
import { Info1, Label1 } from '../../../components/typography/index'
|
||||
|
||||
const InfoWithLabel = ({ info, label }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import classnames from 'classnames'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H4 } from 'src/components/typography'
|
||||
import { H4 } from '../../../components/typography'
|
||||
|
||||
const ranges = ['Month', 'Week', 'Day']
|
||||
|
||||
|
|
|
|||
|
|
@ -4,17 +4,17 @@ import classnames from 'classnames'
|
|||
import { isAfter } from 'date-fns/fp'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { Info2, Label1, Label2, P } from 'src/components/typography/index'
|
||||
import PercentDownIcon from 'src/styling/icons/dashboard/down.svg?react'
|
||||
import PercentNeutralIcon from 'src/styling/icons/dashboard/equal.svg?react'
|
||||
import PercentUpIcon from 'src/styling/icons/dashboard/up.svg?react'
|
||||
import { Info2, Label1, Label2, P } from '../../../components/typography/index'
|
||||
import PercentDownIcon from '../../../styling/icons/dashboard/down.svg?react'
|
||||
import PercentNeutralIcon from '../../../styling/icons/dashboard/equal.svg?react'
|
||||
import PercentUpIcon from '../../../styling/icons/dashboard/up.svg?react'
|
||||
|
||||
import { EmptyTable } from 'src/components/table'
|
||||
import { java, neon } from 'src/styling/variables'
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { DAY, WEEK, MONTH } from 'src/utils/time'
|
||||
import { timezones } from 'src/utils/timezone-list'
|
||||
import { toTimezone } from 'src/utils/timezones'
|
||||
import { EmptyTable } from '../../../components/table'
|
||||
import { java, neon } from '../../../styling/variables'
|
||||
import { fromNamespace } from '../../../utils/config'
|
||||
import { DAY, WEEK, MONTH } from '../../../utils/time'
|
||||
import { timezones } from '../../../utils/timezone-list'
|
||||
import { toTimezone } from '../../../utils/timezones'
|
||||
|
||||
import PercentageChart from './Graphs/PercentageChart'
|
||||
import LineChart from './Graphs/RefLineChart'
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ import TableRow from '@mui/material/TableRow'
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { Status } from 'src/components/Status'
|
||||
import { Label2, TL2 } from 'src/components/typography'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import MachineLinkIcon from 'src/styling/icons/month arrows/right.svg?react'
|
||||
import { Status } from '../../../components/Status'
|
||||
import { Label2, TL2 } from '../../../components/typography'
|
||||
import TxOutIcon from '../../../styling/icons/direction/cash-out.svg?react'
|
||||
import MachineLinkIcon from '../../../styling/icons/month arrows/right.svg?react'
|
||||
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { fromNamespace } from '../../../utils/config'
|
||||
|
||||
// percentage threshold where below this number the text in the cash cassettes percentage turns red
|
||||
const PERCENTAGE_THRESHOLD = 20
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
offColor,
|
||||
errorColor,
|
||||
primaryColor,
|
||||
} from 'src/styling/variables'
|
||||
} from '../../../styling/variables'
|
||||
|
||||
const styles = {
|
||||
label: {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import Button from '@mui/material/Button'
|
|||
import classnames from 'classnames'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { cardState as cardState_ } from 'src/components/CollapsibleCard'
|
||||
import { H4, TL2, Label1 } from 'src/components/typography'
|
||||
import { cardState as cardState_ } from '../../../components/CollapsibleCard'
|
||||
import { H4, TL2, Label1 } from '../../../components/typography'
|
||||
|
||||
import MachinesTable from './MachinesTable'
|
||||
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@ import { format } from 'date-fns/fp'
|
|||
import { QRCodeSVG as QRCode } from 'qrcode.react'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import TableLabel from 'src/pages/Funding/TableLabel.jsx'
|
||||
import Title from 'src/components/Title.jsx'
|
||||
import TableLabel from './TableLabel.jsx'
|
||||
import Title from '../../components/Title.jsx'
|
||||
import {
|
||||
Tr,
|
||||
Td,
|
||||
THead,
|
||||
TBody,
|
||||
Table,
|
||||
} from 'src/components/fake-table/Table.jsx'
|
||||
import Sidebar from 'src/components/layout/Sidebar.jsx'
|
||||
} from '../../components/fake-table/Table.jsx'
|
||||
import Sidebar from '../../components/layout/Sidebar.jsx'
|
||||
import {
|
||||
H3,
|
||||
Info1,
|
||||
|
|
@ -23,10 +23,10 @@ import {
|
|||
Info3,
|
||||
Label1,
|
||||
Label3,
|
||||
} from 'src/components/typography/index.jsx'
|
||||
import CopyToClipboard from 'src/components/CopyToClipboard.jsx'
|
||||
} from '../../components/typography/index.jsx'
|
||||
import CopyToClipboard from '../../components/CopyToClipboard.jsx'
|
||||
|
||||
import { primaryColor } from 'src/styling/variables.js'
|
||||
import { primaryColor } from '../../styling/variables.js'
|
||||
|
||||
import classes from './Funding.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import Section from 'src/components/layout/Section'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { P } from 'src/components/typography'
|
||||
import _schemas from 'src/pages/Services/schemas'
|
||||
import Wizard from 'src/pages/Wallet/Wizard'
|
||||
import { WalletSchema } from 'src/pages/Wallet/helper'
|
||||
import Modal from '../../components/Modal'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import Section from '../../components/layout/Section'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { P } from '../../components/typography'
|
||||
import _schemas from '../Services/schemas'
|
||||
import Wizard from '../Wallet/Wizard'
|
||||
import { WalletSchema } from '../Wallet/helper'
|
||||
|
||||
import { Link, SupportLinkButton } from 'src/components/buttons'
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
import { Link, SupportLinkButton } from '../../components/buttons'
|
||||
import { Table as EditableTable } from '../../components/editableTable'
|
||||
import { fromNamespace, toNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import {
|
||||
mainFields,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import * as R from 'ramda'
|
||||
import Autocomplete from 'src/components/inputs/formik/Autocomplete'
|
||||
import Autocomplete from '../../components/inputs/formik/Autocomplete'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { labels as timezoneList } from 'src/utils/timezone-list'
|
||||
import { labels as timezoneList } from '../../utils/timezone-list'
|
||||
|
||||
const getFields = (getData, names, onChange, auxElements = []) => {
|
||||
return R.filter(
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { useQuery, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper.jsx'
|
||||
import Title from 'src/components/Title.jsx'
|
||||
import Sidebar from 'src/components/layout/Sidebar.jsx'
|
||||
import { Info3, H4 } from 'src/components/typography/index.jsx'
|
||||
import LogsDowloaderPopover from '../../components/LogsDownloaderPopper.jsx'
|
||||
import Title from '../../components/Title.jsx'
|
||||
import Sidebar from '../../components/layout/Sidebar.jsx'
|
||||
import { Info3, H4 } from '../../components/typography/index.jsx'
|
||||
|
||||
import {
|
||||
Table,
|
||||
|
|
@ -13,8 +13,8 @@ import {
|
|||
TableHeader,
|
||||
TableBody,
|
||||
TableCell,
|
||||
} from 'src/components/table/index.js'
|
||||
import { formatDate } from 'src/utils/timezones.js'
|
||||
} from '../../components/table/index.js'
|
||||
import { formatDate } from '../../utils/timezones.js'
|
||||
|
||||
import classes from './Logs.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useQuery, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState, useRef } from 'react'
|
||||
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper.jsx'
|
||||
import Title from 'src/components/Title.jsx'
|
||||
import Uptime from 'src/pages/Logs/Uptime.jsx'
|
||||
import { Info3, H4 } from 'src/components/typography/index.jsx'
|
||||
import LogsDowloaderPopover from '../../components/LogsDownloaderPopper.jsx'
|
||||
import Title from '../../components/Title.jsx'
|
||||
import Uptime from './Uptime.jsx'
|
||||
import { Info3, H4 } from '../../components/typography/index.jsx'
|
||||
|
||||
import { Select } from 'src/components/inputs/index.js'
|
||||
import { Select } from '../../components/inputs/index.js'
|
||||
import {
|
||||
Table,
|
||||
TableHead,
|
||||
|
|
@ -14,9 +14,9 @@ import {
|
|||
TableHeader,
|
||||
TableBody,
|
||||
TableCell,
|
||||
} from 'src/components/table/index.js'
|
||||
import { startCase } from 'src/utils/string.js'
|
||||
import { formatDate } from 'src/utils/timezones.js'
|
||||
} from '../../components/table/index.js'
|
||||
import { startCase } from '../../utils/string.js'
|
||||
import { formatDate } from '../../utils/timezones.js'
|
||||
|
||||
import logsClasses from './Logs.module.css'
|
||||
import classes from './ServerLogs.module.css'
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import Chip from '@mui/material/Chip'
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
|
||||
import { onlyFirstToUpper } from 'src/utils/string.js'
|
||||
import { Label1 } from 'src/components/typography/index.jsx'
|
||||
import { onlyFirstToUpper } from '../../utils/string.js'
|
||||
import { Label1 } from '../../components/typography/index.jsx'
|
||||
|
||||
const Uptime = ({ process }) => {
|
||||
const uptime = time => {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { Form, Formik, Field } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import { H1, H3, P } from 'src/components/typography'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Modal from '../../components/Modal'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import { H1, H3, P } from '../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { NumberInput, Autocomplete } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { NumberInput, Autocomplete } from '../../components/inputs/formik'
|
||||
|
||||
const initialValues = {
|
||||
customer: '',
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ import { useQuery, useMutation, gql } from '@apollo/client'
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
|
||||
import { Link, Button } from 'src/components/buttons'
|
||||
import { DeleteDialog } from 'src/components/DeleteDialog'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import { Label3, TL1 } from 'src/components/typography'
|
||||
import PhoneIdIcon from 'src/styling/icons/ID/phone/zodiac.svg?react'
|
||||
import DeleteIcon from 'src/styling/icons/action/delete/enabled.svg?react'
|
||||
import { Link, Button } from '../../components/buttons'
|
||||
import { DeleteDialog } from '../../components/DeleteDialog'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import { Label3, TL1 } from '../../components/typography'
|
||||
import PhoneIdIcon from '../../styling/icons/ID/phone/zodiac.svg?react'
|
||||
import DeleteIcon from '../../styling/icons/action/delete/enabled.svg?react'
|
||||
|
||||
import IndividualDiscountModal from './IndividualDiscountModal'
|
||||
import classnames from 'classnames'
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import SvgIcon from '@mui/material/SvgIcon'
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { DeleteDialog } from 'src/components/DeleteDialog'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import { Label3, TL1 } from 'src/components/typography'
|
||||
import DeleteIcon from 'src/styling/icons/action/delete/enabled.svg?react'
|
||||
import { DeleteDialog } from '../../components/DeleteDialog'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import { Label3, TL1 } from '../../components/typography'
|
||||
import DeleteIcon from '../../styling/icons/action/delete/enabled.svg?react'
|
||||
|
||||
import { Link, Button } from 'src/components/buttons'
|
||||
import { Link, Button } from '../../components/buttons'
|
||||
|
||||
import PromoCodesModal from './PromoCodesModal'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { Form, Formik, Field } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import { H3, P, H1 } from 'src/components/typography'
|
||||
import ErrorMessage from '../../components/ErrorMessage'
|
||||
import Modal from '../../components/Modal'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import { H3, P, H1 } from '../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { TextInput, NumberInput } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../components/buttons'
|
||||
import { TextInput, NumberInput } from '../../components/inputs/formik'
|
||||
|
||||
const initialValues = {
|
||||
code: '',
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import CashUnitDetails from 'src/pages/Maintenance/CashUnitDetails'
|
||||
import Wizard from 'src/pages/Maintenance/Wizard/Wizard'
|
||||
import helper from 'src/pages/Maintenance/helper'
|
||||
import DataTable from '../../../../components/tables/DataTable'
|
||||
import CashUnitDetails from '../../../Maintenance/CashUnitDetails'
|
||||
import Wizard from '../../../Maintenance/Wizard/Wizard'
|
||||
import helper from '../../../Maintenance/helper'
|
||||
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { fromNamespace } from '../../../../utils/config'
|
||||
|
||||
const SET_CASSETTE_BILLS = gql`
|
||||
mutation MachineAction(
|
||||
|
|
|
|||
|
|
@ -2,8 +2,12 @@ import { useQuery, useMutation, gql } from '@apollo/client'
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
import { Table as EditableTable } from '../../../../components/editableTable'
|
||||
import {
|
||||
fromNamespace,
|
||||
toNamespace,
|
||||
namespaces,
|
||||
} from '../../../../utils/config'
|
||||
|
||||
import { overrides } from './helper'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import TxInIcon from '../../../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
const cashInAndOutHeaderStyle = { marginLeft: 6 }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import React from 'react'
|
||||
import { Label1, P } from 'src/components/typography'
|
||||
import { Label1, P } from '../../../components/typography'
|
||||
|
||||
import { modelPrettifier } from 'src/utils/machine'
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { modelPrettifier } from '../../../utils/machine'
|
||||
import { formatDate } from '../../../utils/timezones'
|
||||
|
||||
const Details = ({ data, timezone }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import BigNumber from 'bignumber.js'
|
||||
import { formatDistance } from 'date-fns'
|
||||
import React from 'react'
|
||||
import { Status } from 'src/components/Status'
|
||||
import MachineActions from 'src/components/machineActions/MachineActions'
|
||||
import { H3, Label1, P } from 'src/components/typography'
|
||||
import CopyToClipboard from 'src/components/CopyToClipboard.jsx'
|
||||
import { Status } from '../../../components/Status'
|
||||
import MachineActions from '../../../components/machineActions/MachineActions'
|
||||
import { H3, Label1, P } from '../../../components/typography'
|
||||
import CopyToClipboard from '../../../components/CopyToClipboard.jsx'
|
||||
|
||||
const Overview = ({ data, onActionSuccess }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ import { toUnit, formatCryptoAddress } from '@lamassu/coins/lightUtils'
|
|||
import BigNumber from 'bignumber.js'
|
||||
import * as R from 'ramda'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import DetailsRow from 'src/pages/Transactions/DetailsCard'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import DetailsRow from '../../../Transactions/DetailsCard'
|
||||
import TxInIcon from '../../../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { getStatus } from 'src/pages/Transactions/helper'
|
||||
import * as Customer from 'src/utils/customer'
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { getStatus } from '../../../Transactions/helper'
|
||||
import * as Customer from '../../../../utils/customer'
|
||||
import { formatDate } from '../../../../utils/timezones'
|
||||
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import DataTable from '../../../../components/tables/DataTable'
|
||||
|
||||
const NUM_LOG_RESULTS = 5
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import NavigateNextIcon from '@mui/icons-material/NavigateNext'
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { Link, useLocation, useHistory } from 'react-router-dom'
|
||||
import { TL1, TL2, Label3 } from 'src/components/typography'
|
||||
import { TL1, TL2, Label3 } from '../../components/typography'
|
||||
|
||||
import Cassettes from './MachineComponents/Cassettes'
|
||||
import Commissions from './MachineComponents/Commissions'
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import Chip from '@mui/material/Chip'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { Label1, TL2 } from 'src/components/typography'
|
||||
import { Label1, TL2 } from '../../components/typography'
|
||||
|
||||
import { CashOut } from 'src/components/inputs'
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { getCashUnitCapacity, modelPrettifier } from 'src/utils/machine'
|
||||
import { CashOut } from '../../components/inputs'
|
||||
import { fromNamespace } from '../../utils/config'
|
||||
import { getCashUnitCapacity, modelPrettifier } from '../../utils/machine'
|
||||
|
||||
const CashUnitDetails = ({
|
||||
machine,
|
||||
|
|
|
|||
|
|
@ -4,22 +4,22 @@ import IconButton from '@mui/material/IconButton'
|
|||
import SvgIcon from '@mui/material/SvgIcon'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import { P, Label1 } from 'src/components/typography'
|
||||
import EditIcon from 'src/styling/icons/action/edit/enabled.svg?react'
|
||||
import ReverseHistoryIcon from 'src/styling/icons/circle buttons/history/white.svg?react'
|
||||
import HistoryIcon from 'src/styling/icons/circle buttons/history/zodiac.svg?react'
|
||||
import LogsDowloaderPopover from '../../components/LogsDownloaderPopper'
|
||||
import Modal from '../../components/Modal'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import { P, Label1 } from '../../components/typography'
|
||||
import EditIcon from '../../styling/icons/action/edit/enabled.svg?react'
|
||||
import ReverseHistoryIcon from '../../styling/icons/circle buttons/history/white.svg?react'
|
||||
import HistoryIcon from '../../styling/icons/circle buttons/history/zodiac.svg?react'
|
||||
|
||||
import { Button, SupportLinkButton } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import { EmptyTable } from 'src/components/table'
|
||||
import { fromNamespace, toNamespace } from 'src/utils/config'
|
||||
import { MANUAL, AUTOMATIC } from 'src/utils/constants'
|
||||
import { onlyFirstToUpper } from 'src/utils/string'
|
||||
import { Button, SupportLinkButton } from '../../components/buttons'
|
||||
import { RadioGroup } from '../../components/inputs'
|
||||
import { EmptyTable } from '../../components/table'
|
||||
import { fromNamespace, toNamespace } from '../../utils/config'
|
||||
import { MANUAL, AUTOMATIC } from '../../utils/constants'
|
||||
import { onlyFirstToUpper } from '../../utils/string'
|
||||
|
||||
import CashUnitDetails from './CashUnitDetails'
|
||||
import CashCassettesFooter from './CashUnitsFooter'
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import BigNumber from 'bignumber.js'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { Info1, Info2, Info3 } from 'src/components/typography/index'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import { Info1, Info2, Info3 } from '../../components/typography/index'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { fromNamespace } from '../../utils/config'
|
||||
import { numberToFiatAmount } from '../../utils/number'
|
||||
|
||||
const CashCassettesFooter = ({ machines, config, currencyCode, bills }) => {
|
||||
const cashout = config && fromNamespace('cashOut')(config)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useQuery, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import TxInIcon from '../../styling/icons/direction/cash-in.svg?react'
|
||||
import TxOutIcon from '../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { NumberInput } from 'src/components/inputs/formik'
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { NumberInput } from '../../components/inputs/formik'
|
||||
import { formatDate } from '../../utils/timezones'
|
||||
|
||||
const GET_BATCHES = gql`
|
||||
query cashboxBatches {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import BigNumber from 'bignumber.js'
|
||||
import React from 'react'
|
||||
|
||||
import MachineActions from 'src/components/machineActions/MachineActions'
|
||||
import { Label1 } from 'src/components/typography/index.jsx'
|
||||
import MachineActions from '../../components/machineActions/MachineActions'
|
||||
import { Label1 } from '../../components/typography/index.jsx'
|
||||
|
||||
import { modelPrettifier } from 'src/utils/machine'
|
||||
import { formatDate } from 'src/utils/timezones'
|
||||
import { modelPrettifier } from '../../utils/machine'
|
||||
import { formatDate } from '../../utils/timezones'
|
||||
|
||||
const Label = ({ children }) => {
|
||||
return <Label1 className="text-comet mb-1">{children}</Label1>
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ import { formatDistance } from 'date-fns'
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { useHistory, useLocation } from 'react-router-dom'
|
||||
import { MainStatus } from 'src/components/Status'
|
||||
import Title from 'src/components/Title'
|
||||
import DataTable from 'src/components/tables/DataTable'
|
||||
import { Label1 } from 'src/components/typography/index.jsx'
|
||||
import MachineRedirectIcon from 'src/styling/icons/month arrows/right.svg?react'
|
||||
import WarningIcon from 'src/styling/icons/status/pumpkin.svg?react'
|
||||
import ErrorIcon from 'src/styling/icons/status/tomato.svg?react'
|
||||
import { MainStatus } from '../../components/Status'
|
||||
import Title from '../../components/Title'
|
||||
import DataTable from '../../components/tables/DataTable'
|
||||
import { Label1 } from '../../components/typography/index.jsx'
|
||||
import MachineRedirectIcon from '../../styling/icons/month arrows/right.svg?react'
|
||||
import WarningIcon from '../../styling/icons/status/pumpkin.svg?react'
|
||||
import ErrorIcon from '../../styling/icons/status/tomato.svg?react'
|
||||
|
||||
import MachineDetailsRow from './MachineDetailsCard'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import Modal from 'src/components/Modal'
|
||||
import Modal from '../../../components/Modal'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { MAX_NUMBER_OF_CASSETTES } from 'src/utils/constants'
|
||||
import { MAX_NUMBER_OF_CASSETTES } from '../../../utils/constants'
|
||||
import {
|
||||
cashUnitCapacity,
|
||||
getCashUnitCapacity,
|
||||
modelPrettifier,
|
||||
} from 'src/utils/machine'
|
||||
import { defaultToZero } from 'src/utils/number'
|
||||
} from '../../../utils/machine'
|
||||
import { defaultToZero } from '../../../utils/number'
|
||||
|
||||
import WizardSplash from './WizardSplash'
|
||||
import WizardStep from './WizardStep'
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import React from 'react'
|
||||
import { H1, P, Info2 } from 'src/components/typography'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import { H1, P, Info2 } from '../../../components/typography'
|
||||
import WarningIcon from '../../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import filledCassettes from 'src/styling/icons/cassettes/both-filled.svg'
|
||||
import { Button } from '../../../components/buttons'
|
||||
import filledCassettes from '../../../styling/icons/cassettes/both-filled.svg'
|
||||
|
||||
const WizardSplash = ({ name, onContinue }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -2,28 +2,28 @@ import classnames from 'classnames'
|
|||
import { Formik, Form, Field } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Stepper from 'src/components/Stepper'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import { Cashbox } from 'src/components/inputs/cashbox/Cashbox'
|
||||
import { Info2, H4, P, Info1 } from 'src/components/typography'
|
||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||
import ErrorMessage from '../../../components/ErrorMessage'
|
||||
import Stepper from '../../../components/Stepper'
|
||||
import { HelpTooltip } from '../../../components/Tooltip'
|
||||
import { Cashbox } from '../../../components/inputs/cashbox/Cashbox'
|
||||
import { Info2, H4, P, Info1 } from '../../../components/typography'
|
||||
import TxOutIcon from '../../../styling/icons/direction/cash-out.svg?react'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { NumberInput, RadioGroup } from 'src/components/inputs/formik'
|
||||
import cashbox from 'src/styling/icons/cassettes/acceptor-left.svg'
|
||||
import cassetteOne from 'src/styling/icons/cassettes/dispenser-1.svg'
|
||||
import cassetteTwo from 'src/styling/icons/cassettes/dispenser-2.svg'
|
||||
import tejo3CassetteOne from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-1-left.svg'
|
||||
import tejo3CassetteTwo from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-2-left.svg'
|
||||
import tejo3CassetteThree from 'src/styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteOne from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-1-left.svg'
|
||||
import tejo4CassetteTwo from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-2-left.svg'
|
||||
import tejo4CassetteThree from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteFour from 'src/styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-4-left.svg'
|
||||
import { getCashUnitCapacity } from 'src/utils/machine'
|
||||
import { numberToFiatAmount } from 'src/utils/number'
|
||||
import { startCase } from 'src/utils/string'
|
||||
import { Button } from '../../../components/buttons'
|
||||
import { NumberInput, RadioGroup } from '../../../components/inputs/formik'
|
||||
import cashbox from '../../../styling/icons/cassettes/acceptor-left.svg'
|
||||
import cassetteOne from '../../../styling/icons/cassettes/dispenser-1.svg'
|
||||
import cassetteTwo from '../../../styling/icons/cassettes/dispenser-2.svg'
|
||||
import tejo3CassetteOne from '../../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-1-left.svg'
|
||||
import tejo3CassetteTwo from '../../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-2-left.svg'
|
||||
import tejo3CassetteThree from '../../../styling/icons/cassettes/tejo/3-cassettes/3-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteOne from '../../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-1-left.svg'
|
||||
import tejo4CassetteTwo from '../../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-2-left.svg'
|
||||
import tejo4CassetteThree from '../../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-3-left.svg'
|
||||
import tejo4CassetteFour from '../../../styling/icons/cassettes/tejo/4-cassettes/4-cassettes-open-4-left.svg'
|
||||
import { getCashUnitCapacity } from '../../../utils/machine'
|
||||
import { numberToFiatAmount } from '../../../utils/number'
|
||||
import { startCase } from '../../../utils/string'
|
||||
import classes from './WizardStep.module.css'
|
||||
|
||||
const CASHBOX_STEP = 1
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import IconButton from '@mui/material/IconButton'
|
|||
import SvgIcon from '@mui/material/SvgIcon'
|
||||
import React from 'react'
|
||||
import * as R from 'ramda'
|
||||
import { CashIn, CashOutLite } from 'src/components/inputs/cashbox/Cashbox'
|
||||
import EditIcon from 'src/styling/icons/action/edit/enabled.svg?react'
|
||||
import { CashIn, CashOutLite } from '../../components/inputs/cashbox/Cashbox'
|
||||
import EditIcon from '../../styling/icons/action/edit/enabled.svg?react'
|
||||
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { getCashUnitCapacity } from 'src/utils/machine'
|
||||
import { fromNamespace } from '../../utils/config'
|
||||
import { getCashUnitCapacity } from '../../utils/machine'
|
||||
|
||||
const getElements = (config, bills, setWizard, widths, setMachineId) => {
|
||||
const fillingPercentageSettings = fromNamespace('notifications', config)
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import Modal from 'src/components/Modal'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { P } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import Modal from '../../components/Modal'
|
||||
import { HelpTooltip } from '../../components/Tooltip'
|
||||
import TitleSection from '../../components/layout/TitleSection'
|
||||
import { P } from '../../components/typography'
|
||||
import FormRenderer from '../Services/FormRenderer'
|
||||
|
||||
import { SupportLinkButton } from 'src/components/buttons'
|
||||
import twilioSchema from 'src/pages/Services/schemas/twilio'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
import { SupportLinkButton } from '../../components/buttons'
|
||||
import twilioSchema from '../Services/schemas/twilio'
|
||||
import { fromNamespace, toNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import Section from '../../components/layout/Section'
|
||||
import mailgunSchema from '../Services/schemas/mailgun'
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import IconButton from '@mui/material/IconButton'
|
||||
import React from 'react'
|
||||
import { H4 } from 'src/components/typography'
|
||||
import DisabledEditIcon from 'src/styling/icons/action/edit/disabled.svg?react'
|
||||
import EditIcon from 'src/styling/icons/action/edit/enabled.svg?react'
|
||||
import { H4 } from '../../../components/typography'
|
||||
import DisabledEditIcon from '../../../styling/icons/action/edit/disabled.svg?react'
|
||||
import EditIcon from '../../../styling/icons/action/edit/enabled.svg?react'
|
||||
|
||||
import { Link } from 'src/components/buttons'
|
||||
import { Link } from '../../../components/buttons'
|
||||
import SvgIcon from '@mui/material/SvgIcon'
|
||||
|
||||
const Header = ({ title, editing, disabled, setEditing }) => {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import classnames from 'classnames'
|
||||
import { useFormikContext, Field as FormikField } from 'formik'
|
||||
import React from 'react'
|
||||
import { Label1, Info1, TL2 } from 'src/components/typography'
|
||||
import { Label1, Info1, TL2 } from '../../../components/typography'
|
||||
|
||||
import { NumberInput } from 'src/components/inputs/formik'
|
||||
import { NumberInput } from '../../../components/inputs/formik'
|
||||
|
||||
const EditableNumber = ({
|
||||
label,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { Form, Formik } from 'formik'
|
||||
import React, { useContext, useState } from 'react'
|
||||
import PromptWhenDirty from 'src/components/PromptWhenDirty'
|
||||
import PromptWhenDirty from '../../../components/PromptWhenDirty'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { transformNumber } from '../../../utils/number'
|
||||
|
||||
import NotificationsCtx from '../NotificationsContext'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useContext } from 'react'
|
||||
import Autocomplete from 'src/components/inputs/formik/Autocomplete'
|
||||
import Autocomplete from '../../../components/inputs/formik/Autocomplete'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { NumberInput } from 'src/components/inputs/formik'
|
||||
import { CURRENCY_MAX } from 'src/utils/constants'
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { Table as EditableTable } from '../../../components/editableTable'
|
||||
import { NumberInput } from '../../../components/inputs/formik'
|
||||
import { CURRENCY_MAX } from '../../../utils/constants'
|
||||
import { transformNumber } from '../../../utils/number'
|
||||
|
||||
import NotificationsCtx from '../NotificationsContext'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { Form, Formik } from 'formik'
|
||||
import * as R from 'ramda'
|
||||
import React, { useContext } from 'react'
|
||||
import PromptWhenDirty from 'src/components/PromptWhenDirty'
|
||||
import { TL2 } from 'src/components/typography'
|
||||
import PromptWhenDirty from '../../../components/PromptWhenDirty'
|
||||
import { TL2 } from '../../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { transformNumber } from '../../../utils/number'
|
||||
|
||||
import { Cashbox } from '../../../components/inputs/cashbox/Cashbox'
|
||||
import NotificationsCtx from '../NotificationsContext'
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useContext } from 'react'
|
||||
import Autocomplete from 'src/components/inputs/formik/Autocomplete'
|
||||
import Autocomplete from '../../../components/inputs/formik/Autocomplete'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { NumberInput } from 'src/components/inputs/formik/'
|
||||
import { fromNamespace } from 'src/utils/config'
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
import { Table as EditableTable } from '../../../components/editableTable'
|
||||
import { NumberInput } from '../../../components/inputs/formik'
|
||||
import { fromNamespace } from '../../../utils/config'
|
||||
import { transformNumber } from '../../../utils/number'
|
||||
|
||||
import NotificationsCtx from '../NotificationsContext'
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue