chore: stop using alias imports
This commit is contained in:
parent
ad7a2eac4e
commit
b48c590bc8
243 changed files with 1061 additions and 1080 deletions
|
|
@ -4,9 +4,9 @@ import DialogContent from '@mui/material/DialogContent'
|
|||
import classnames from 'classnames'
|
||||
import React, { useState, useContext } from 'react'
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { getWizardStep, STEPS } from 'src/pages/Wizard/helper'
|
||||
import { getWizardStep, STEPS } from './helper'
|
||||
|
||||
import AppContext from 'src/AppContext'
|
||||
import AppContext from '../../AppContext'
|
||||
|
||||
import Footer from './components/Footer'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import Section from 'src/components/layout/Section'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import { mainFields, defaults, getSchema } from 'src/pages/Commissions/helper'
|
||||
import Section from '../../../components/layout/Section'
|
||||
import TitleSection from '../../../components/layout/TitleSection'
|
||||
import { mainFields, defaults, getSchema } from '../../Commissions/helper'
|
||||
|
||||
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'
|
||||
|
||||
const GET_DATA = gql`
|
||||
query getData {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import Drawer from '@mui/material/Drawer'
|
||||
import Grid from '@mui/material/Grid'
|
||||
import React, { useState } from 'react'
|
||||
import Modal from 'src/components/Modal'
|
||||
import Stepper from 'src/components/Stepper'
|
||||
import { P, H2, Info2 } from 'src/components/typography'
|
||||
import Modal from '../../../components/Modal'
|
||||
import Stepper from '../../../components/Stepper'
|
||||
import { P, H2, Info2 } from '../../../components/typography'
|
||||
|
||||
import { Button, Link } from 'src/components/buttons'
|
||||
import { Button, Link } from '../../../components/buttons'
|
||||
|
||||
function Footer({ currentStep, steps, subtitle, text, exImage, open, start }) {
|
||||
const [fullExample, setFullExample] = useState(false)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import Section from 'src/components/layout/Section'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import Section from '../../../components/layout/Section'
|
||||
import TitleSection from '../../../components/layout/TitleSection'
|
||||
|
||||
import { Table as EditableTable } from 'src/components/editableTable'
|
||||
import { Table as EditableTable } from '../../../components/editableTable'
|
||||
import {
|
||||
mainFields,
|
||||
localeDefaults as defaults,
|
||||
LocaleSchema as schema,
|
||||
} from 'src/pages/Locales/helper'
|
||||
import { toNamespace } from 'src/utils/config'
|
||||
} from '../../Locales/helper'
|
||||
import { toNamespace } from '../../../utils/config'
|
||||
|
||||
import { getConfiguredCoins } from '../helper'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import { useMutation, useQuery, gql } from '@apollo/client'
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import { H4, Info3 } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import InverseLinkIcon from 'src/styling/icons/action/external link/white.svg?react'
|
||||
import LinkIcon from 'src/styling/icons/action/external link/zodiac.svg?react'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import { H4, Info3 } from '../../../components/typography'
|
||||
import FormRenderer from '../../Services/FormRenderer'
|
||||
import InverseLinkIcon from '../../../styling/icons/action/external link/white.svg?react'
|
||||
import LinkIcon from '../../../styling/icons/action/external link/zodiac.svg?react'
|
||||
import WarningIcon from '../../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { ActionButton } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import mailgunSchema from 'src/pages/Services/schemas/mailgun'
|
||||
import classes from 'src/pages/Wizard/Radio.module.css'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
import { ActionButton } from '../../../components/buttons'
|
||||
import { RadioGroup } from '../../../components/inputs'
|
||||
import mailgunSchema from '../../Services/schemas/mailgun'
|
||||
import classes from '../Radio.module.css'
|
||||
import { fromNamespace, toNamespace, namespaces } from '../../../utils/config'
|
||||
|
||||
const GET_CONFIG = gql`
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import Grid from '@mui/material/Grid'
|
||||
import React, { useState } from 'react'
|
||||
import Sidebar from 'src/components/layout/Sidebar'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import Notifications from 'src/pages/Notifications/Notifications'
|
||||
import Sidebar from '../../../components/layout/Sidebar'
|
||||
import TitleSection from '../../../components/layout/TitleSection'
|
||||
import Notifications from '../../Notifications/Notifications'
|
||||
|
||||
import { namespaces } from 'src/utils/config'
|
||||
import { namespaces } from '../../../utils/config'
|
||||
|
||||
import Mailgun from './Mailgun'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
|
||||
// import OperatorInfo from 'src/pages/OperatorInfo'
|
||||
// import OperatorInfo from '../../OperatorInfo'
|
||||
|
||||
function WizardOperatorInfo() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { useMutation, useQuery, gql } from '@apollo/client'
|
||||
import classnames from 'classnames'
|
||||
import React, { useState } from 'react'
|
||||
import { HelpTooltip } from 'src/components/Tooltip'
|
||||
import { H1, H4, Label1, P } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import { HelpTooltip } from '../../../components/Tooltip'
|
||||
import { H1, H4, Label1, P } from '../../../components/typography'
|
||||
import FormRenderer from '../../Services/FormRenderer'
|
||||
import WarningIcon from '../../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { Button, SupportLinkButton } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import twilio from 'src/pages/Services/schemas/twilio'
|
||||
import { Button, SupportLinkButton } from '../../../components/buttons'
|
||||
import { RadioGroup } from '../../../components/inputs'
|
||||
import twilio from '../../Services/schemas/twilio'
|
||||
|
||||
import sharedClasses from './Wallet/Shared.module.css'
|
||||
import classes from './Twilio.module.css'
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { P, H4 } from 'src/components/typography'
|
||||
import { getElements, WalletSchema } from 'src/pages/Wallet/helper'
|
||||
import { P, H4 } from '../../../../components/typography'
|
||||
import { getElements, WalletSchema } from '../../../Wallet/helper'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { NamespacedTable as EditableTable } from 'src/components/editableTable'
|
||||
import { toNamespace, namespaces } from 'src/utils/config'
|
||||
import { Button } from '../../../../components/buttons'
|
||||
import { NamespacedTable as EditableTable } from '../../../../components/editableTable'
|
||||
import { toNamespace, namespaces } from '../../../../utils/config'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { useMutation, useQuery, gql } from '@apollo/client'
|
||||
import React, { useState } from 'react'
|
||||
import { P, H4 } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import { P, H4 } from '../../../../components/typography'
|
||||
import FormRenderer from '../../../Services/FormRenderer'
|
||||
|
||||
import { SupportLinkButton, Button } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import blockcypherSchema from 'src/pages/Services/schemas/blockcypher'
|
||||
import { SupportLinkButton, Button } from '../../../../components/buttons'
|
||||
import { RadioGroup } from '../../../../components/inputs'
|
||||
import blockcypherSchema from '../../../Services/schemas/blockcypher'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { useQuery, gql } from '@apollo/client'
|
||||
import { Formik, Form, Field } from 'formik'
|
||||
import React, { useState } from 'react'
|
||||
import PromptWhenDirty from 'src/components/PromptWhenDirty'
|
||||
import { H4 } from 'src/components/typography'
|
||||
import PromptWhenDirty from '../../../../components/PromptWhenDirty'
|
||||
import { H4 } from '../../../../components/typography'
|
||||
import * as Yup from 'yup'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs/formik'
|
||||
import { Button } from '../../../../components/buttons'
|
||||
import { RadioGroup } from '../../../../components/inputs/formik'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ import { useQuery, useMutation, gql } from '@apollo/client'
|
|||
import { getEquivalentCode } from '@lamassu/coins/lightUtils'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H4, Info3 } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import { H4, Info3 } from '../../../../components/typography'
|
||||
import FormRenderer from '../../../Services/FormRenderer'
|
||||
import WarningIcon from '../../../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { Button, SupportLinkButton } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import _schema from 'src/pages/Services/schemas'
|
||||
import { Button, SupportLinkButton } from '../../../../components/buttons'
|
||||
import { RadioGroup } from '../../../../components/inputs'
|
||||
import _schema from '../../../Services/schemas'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
import { getItems } from './getItems'
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ import { useQuery, gql } from '@apollo/client'
|
|||
import { getEquivalentCode } from '@lamassu/coins/lightUtils'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H4 } from 'src/components/typography'
|
||||
import { H4 } from '../../../../components/typography'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import { Button } from '../../../../components/buttons'
|
||||
import { RadioGroup } from '../../../../components/inputs'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
import { getItems } from './getItems'
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import { useQuery, useMutation, gql } from '@apollo/client'
|
||||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import { H4, Info3 } from 'src/components/typography'
|
||||
import FormRenderer from 'src/pages/Services/FormRenderer'
|
||||
import WarningIcon from 'src/styling/icons/warning-icon/comet.svg?react'
|
||||
import { H4, Info3 } from '../../../../components/typography'
|
||||
import FormRenderer from '../../../Services/FormRenderer'
|
||||
import WarningIcon from '../../../../styling/icons/warning-icon/comet.svg?react'
|
||||
|
||||
import { Button, SupportLinkButton } from 'src/components/buttons'
|
||||
import { RadioGroup } from 'src/components/inputs'
|
||||
import _schema from 'src/pages/Services/schemas'
|
||||
import bitgo from 'src/pages/Services/schemas/singlebitgo'
|
||||
import { Button, SupportLinkButton } from '../../../../components/buttons'
|
||||
import { RadioGroup } from '../../../../components/inputs'
|
||||
import _schema from '../../../Services/schemas'
|
||||
import bitgo from '../../../Services/schemas/singlebitgo'
|
||||
|
||||
import classes from './Shared.module.css'
|
||||
import { getItems } from './getItems'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as R from 'ramda'
|
||||
import React, { useState } from 'react'
|
||||
import Sidebar, { Stepper } from 'src/components/layout/Sidebar'
|
||||
import TitleSection from 'src/components/layout/TitleSection'
|
||||
import Sidebar, { Stepper } from '../../../../components/layout/Sidebar'
|
||||
import TitleSection from '../../../../components/layout/TitleSection'
|
||||
|
||||
import AllSet from './AllSet'
|
||||
import Blockcypher from './Blockcypher'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as R from 'ramda'
|
||||
|
||||
import _schema from 'src/pages/Services/schemas'
|
||||
import _schema from '../../../Services/schemas'
|
||||
|
||||
const contains = crypto => R.compose(R.contains(crypto), R.prop('cryptos'))
|
||||
const sameClass = type => R.propEq('class', type)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import { H1, P } from 'src/components/typography'
|
||||
import { H1, P } from '../../../components/typography'
|
||||
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Button } from '../../../components/buttons'
|
||||
|
||||
function Welcome({ doContinue }) {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
import { getSchema as CommissionsSchema } from 'src/pages/Commissions/helper'
|
||||
import { WalletSchema } from 'src/pages/Wallet/helper'
|
||||
import { getSchema as CommissionsSchema } from '../Commissions/helper'
|
||||
import { WalletSchema } from '../Wallet/helper'
|
||||
|
||||
import { LocaleSchema } from 'src/pages/Locales/helper'
|
||||
import { fromNamespace, namespaces } from 'src/utils/config'
|
||||
import { LocaleSchema } from '../Locales/helper'
|
||||
import { fromNamespace, namespaces } from '../../utils/config'
|
||||
|
||||
import Commissions from './components/Commissions'
|
||||
import Locale from './components/Locales'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue