chore: graphql libs

This commit is contained in:
Rafael Taranto 2025-04-11 09:46:44 +01:00
parent 3805e989c5
commit 2b3378c722
80 changed files with 1641 additions and 1294 deletions

View file

@ -34,7 +34,8 @@ const resolvers = {
},
replacePhoto: async (root, { customerId, photoType, newPhoto }, context) => {
const token = authentication.getToken(context)
const photo = await newPhoto
const { file } = newPhoto
const photo = await file
if (!photo) return customers.getCustomerById(customerId)
return customers.updateEditedPhoto(customerId, photo, photoType)
.then(newPatch => customers.edit(customerId, newPatch, token))

File diff suppressed because it is too large Load diff

View file

@ -4,20 +4,13 @@
"license": "../LICENSE",
"type": "module",
"dependencies": {
"@apollo/react-hooks": "^3.1.3",
"@apollo/client": "^3.13.7",
"@lamassu/coins": "v1.6.1",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.2",
"@material-ui/lab": "^4.0.0-alpha.61",
"@simplewebauthn/browser": "^3.0.0",
"@use-hooks/axios": "1.3.0",
"apollo-cache-inmemory": "^1.6.6",
"apollo-client": "^2.6.10",
"apollo-link": "^1.2.14",
"apollo-link-error": "^1.1.13",
"apollo-link-http": "^1.5.17",
"apollo-upload-client": "^13.0.0",
"axios": "0.21.1",
"apollo-upload-client": "^18.0.0",
"bignumber.js": "9.0.0",
"classnames": "2.2.6",
"countries-and-timezones": "^2.4.0",
@ -27,8 +20,6 @@
"downshift": "3.3.4",
"file-saver": "2.0.2",
"formik": "2.2.0",
"graphql": "^14.5.8",
"graphql-tag": "^2.12.6",
"jss-plugin-extend": "^10.0.0",
"jszip": "^3.6.0",
"libphonenumber-js": "^1.11.15",
@ -46,7 +37,7 @@
"react-router-dom": "5.1.2",
"react-use": "15.3.2",
"react-virtualized": "^9.21.2",
"ua-parser-js": "^1.0.2",
"ua-parser-js": "1.0.40",
"uuid": "^8.3.2",
"yup": "1.4.0"
},

View file

@ -1,4 +1,4 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import CssBaseline from '@material-ui/core/CssBaseline'
import Grid from '@material-ui/core/Grid'
import Slide from '@material-ui/core/Slide'
@ -8,7 +8,6 @@ import {
MuiThemeProvider,
makeStyles
} from '@material-ui/core/styles'
import gql from 'graphql-tag'
import { create } from 'jss'
import extendJss from 'jss-plugin-extend'
import React, { useContext, useState } from 'react'

View file

@ -1,4 +1,4 @@
import { useLazyQuery } from '@apollo/react-hooks'
import { useLazyQuery } from "@apollo/client";
import { makeStyles, ClickAwayListener } from '@material-ui/core'
import classnames from 'classnames'
import { format, set } from 'date-fns/fp'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState, useEffect } from 'react'
import ActionButton from 'src/components/buttons/ActionButton'

View file

@ -1,9 +1,8 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import ClickAwayListener from '@material-ui/core/ClickAwayListener'
import Popper from '@material-ui/core/Popper'
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { memo, useState, useEffect, useRef } from 'react'
import { NavLink, useHistory } from 'react-router-dom'

View file

@ -1,8 +1,7 @@
import { useLazyQuery, useQuery } from '@apollo/react-hooks'
import { useLazyQuery, useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import { subMinutes } from 'date-fns'
import FileSaver from 'file-saver'
import gql from 'graphql-tag'
import React, { useState, useEffect } from 'react'
import Modal from 'src/components/Modal'
import { H3, P } from 'src/components/typography'

View file

@ -1,6 +1,5 @@
import { useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useMutation, useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { memo, useState } from 'react'
import { ConfirmDialog } from 'src/components/ConfirmDialog'
import ActionButton from 'src/components/buttons/ActionButton'

View file

@ -1,9 +1,8 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, gql } from "@apollo/client";
import { Dialog, DialogContent, SvgIcon, IconButton } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import { Form, Formik, FastField } from 'formik'
import gql from 'graphql-tag'
import QRCode from 'qrcode.react'
import * as R from 'ramda'
import React, { memo, useState, useEffect, useRef } from 'react'

View file

@ -1,10 +1,9 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { Box } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import { endOfToday } from 'date-fns'
import { subDays, format, add, startOfWeek } from 'date-fns/fp'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import TitleSection from 'src/components/layout/TitleSection'

View file

@ -1,29 +0,0 @@
import useAxios from '@use-hooks/axios'
import React from 'react'
import { useLocation, useHistory } from 'react-router-dom'
const useQuery = () => new URLSearchParams(useLocation().search)
const AuthRegister = () => {
const history = useHistory()
const query = useQuery()
useAxios({
url: `/api/register?otp=${query.get('otp')}`,
method: 'GET',
options: {
withCredentials: true
},
trigger: [],
customHandler: (err, res) => {
if (err) return
if (res) {
history.push('/wizard', { fromAuthRegister: true })
}
}
})
return <span>registering...</span>
}
export default AuthRegister

View file

@ -1,7 +1,6 @@
import { useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useMutation, useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import { Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useContext, useState } from 'react'
import { useHistory } from 'react-router-dom'
import { TL1, P } from 'src/components/typography'

View file

@ -1,8 +1,7 @@
import { useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useMutation, useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import { startAssertion } from '@simplewebauthn/browser'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useState, useContext } from 'react'
import { useHistory } from 'react-router-dom'
import { H2, Label2, P } from 'src/components/typography'

View file

@ -1,8 +1,7 @@
import { useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useMutation, useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import { startAssertion } from '@simplewebauthn/browser'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useContext } from 'react'
import { useHistory } from 'react-router-dom'
import { Label3, P } from 'src/components/typography'

View file

@ -1,8 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Grid } from '@material-ui/core'
import Paper from '@material-ui/core/Paper'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useReducer } from 'react'
import { useLocation, useHistory } from 'react-router-dom'
import { H2, Label3, P } from 'src/components/typography'

View file

@ -1,8 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Grid } from '@material-ui/core'
import Paper from '@material-ui/core/Paper'
import { Form, Formik } from 'formik'
import gql from 'graphql-tag'
import QRCode from 'qrcode.react'
import React, { useReducer, useState } from 'react'
import { useLocation, useHistory } from 'react-router-dom'

View file

@ -1,8 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Grid } from '@material-ui/core'
import Paper from '@material-ui/core/Paper'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import { useLocation, useHistory } from 'react-router-dom'
import { H2, Label3, P } from 'src/components/typography'

View file

@ -1,7 +1,6 @@
import { useMutation, useQuery, useLazyQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import { Form, Formik } from 'formik'
import gql from 'graphql-tag'
import QRCode from 'qrcode.react'
import React, { useContext, useState } from 'react'
import { useHistory } from 'react-router-dom'

View file

@ -1,7 +1,6 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { Box, Dialog, DialogContent, DialogActions } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,4 +1,4 @@
import { useQuery, useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useQuery, useMutation, useLazyQuery, gql } from "@apollo/client";
import {
makeStyles,
Breadcrumbs,
@ -8,7 +8,6 @@ import {
Dialog
} from '@material-ui/core'
import NavigateNextIcon from '@material-ui/icons/NavigateNext'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { memo, useState } from 'react'
import { useHistory, useParams } from 'react-router-dom'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { Box, makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { useHistory } from 'react-router-dom'

View file

@ -1,7 +1,6 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import classnames from 'classnames'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'
import { MainStatus } from 'src/components/Status'

View file

@ -1,9 +1,8 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import Button from '@material-ui/core/Button'
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import { cardState } from 'src/components/CollapsibleCard'

View file

@ -1,7 +1,6 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { useHistory } from 'react-router-dom'

View file

@ -1,9 +1,8 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import Grid from '@material-ui/core/Grid'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import { Label2 } from 'src/components/typography'

View file

@ -1,10 +1,9 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
import { isAfter } from 'date-fns/fp'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { Label1, Label2, P } from 'src/components/typography/index'

View file

@ -1,4 +1,4 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles, withStyles } from '@material-ui/core'
import Table from '@material-ui/core/Table'
import TableBody from '@material-ui/core/TableBody'
@ -7,7 +7,6 @@ import TableContainer from '@material-ui/core/TableContainer'
import TableHead from '@material-ui/core/TableHead'
import TableRow from '@material-ui/core/TableRow'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import { useHistory } from 'react-router-dom'

View file

@ -1,9 +1,8 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import Button from '@material-ui/core/Button'
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import { cardState as cardState_ } from 'src/components/CollapsibleCard'

View file

@ -1,10 +1,9 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { formatCryptoAddress } from '@lamassu/coins/lightUtils'
import { makeStyles } from '@material-ui/core/styles'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
import { format } from 'date-fns/fp'
import gql from 'graphql-tag'
import QRCode from 'qrcode.react'
import * as R from 'ramda'
import React, { useState } from 'react'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Box } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { DeleteDialog } from 'src/components/DeleteDialog'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Box } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { DeleteDialog } from 'src/components/DeleteDialog'

View file

@ -1,6 +1,5 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import DataTable from 'src/components/tables/DataTable'

View file

@ -1,5 +1,4 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { useQuery, useMutation, gql } from "@apollo/client";
import * as R from 'ramda'
import React from 'react'

View file

@ -1,8 +1,7 @@
import { useQuery, useLazyQuery } from '@apollo/react-hooks'
import { useQuery, useLazyQuery, gql } from "@apollo/client";
import { toUnit, formatCryptoAddress } from '@lamassu/coins/lightUtils'
import { makeStyles } from '@material-ui/core'
import BigNumber from 'bignumber.js'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useEffect, useState } from 'react'
import DetailsRow from 'src/pages/Transactions/DetailsCard'

View file

@ -1,10 +1,9 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import Breadcrumbs from '@material-ui/core/Breadcrumbs'
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import NavigateNextIcon from '@material-ui/icons/NavigateNext'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { Link, useLocation, useHistory } from 'react-router-dom'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { DialogActions, makeStyles, Box } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper'

View file

@ -1,6 +1,5 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
// import * as Yup from 'yup'

View file

@ -1,7 +1,6 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import { formatDistance } from 'date-fns'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import { useHistory, useLocation } from 'react-router-dom'

View file

@ -1,5 +1,4 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { useQuery, useMutation, gql } from "@apollo/client";
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { memo } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'
import { H4, P, Label2 } from 'src/components/typography'

View file

@ -1,8 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import classnames from 'classnames'
import { Form, Formik, Field as FormikField } from 'formik'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { memo } from 'react'
import { H4, P, Label2 } from 'src/components/typography'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { memo } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Paper } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,8 +1,7 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import classnames from 'classnames'
import { Form, Formik, Field as FormikField } from 'formik'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'

View file

@ -1,6 +1,5 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState, useRef } from 'react'
import LogsDowloaderPopover from 'src/components/LogsDownloaderPopper'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Grid } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'

View file

@ -1,5 +1,4 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { useQuery, useMutation, gql } from "@apollo/client";
import * as R from 'ramda'
import React from 'react'
import TitleSection from 'src/components/layout/TitleSection'

View file

@ -1,11 +1,10 @@
import { useLazyQuery, useMutation } from '@apollo/react-hooks'
import { useLazyQuery, useMutation, gql } from "@apollo/client";
import { toUnit, formatCryptoAddress } from '@lamassu/coins/lightUtils'
import { makeStyles, Box } from '@material-ui/core'
import BigNumber from 'bignumber.js'
import classNames from 'classnames'
import { add, differenceInYears, format, sub, parse } from 'date-fns/fp'
import FileSaver from 'file-saver'
import gql from 'graphql-tag'
import JSZip from 'jszip'
import * as R from 'ramda'
import React, { memo, useState } from 'react'

View file

@ -1,8 +1,7 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { toUnit, formatCryptoAddress } from '@lamassu/coins/lightUtils'
import { makeStyles } from '@material-ui/core'
import BigNumber from 'bignumber.js'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useEffect, useState } from 'react'
import { useHistory } from 'react-router-dom'

View file

@ -1,7 +1,6 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { DeleteDialog } from 'src/components/DeleteDialog'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles, Box } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { H2 } from 'src/components/typography'

View file

@ -1,7 +1,6 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles, Box } from '@material-ui/core'
import classnames from 'classnames'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'

View file

@ -1,5 +1,4 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { useMutation, useQuery, gql } from "@apollo/client";
import * as R from 'ramda'
import React, { memo, useState } from 'react'
import Section from 'src/components/layout/Section'

View file

@ -1,7 +1,6 @@
import { useQuery, useMutation, useLazyQuery } from '@apollo/react-hooks'
import { useQuery, useMutation, useLazyQuery, gql } from "@apollo/client";
import { makeStyles, Box, Chip } from '@material-ui/core'
import { startAttestation } from '@simplewebauthn/browser'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useReducer, useState, useContext } from 'react'
import TitleSection from 'src/components/layout/TitleSection'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'

View file

@ -1,8 +1,7 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'

View file

@ -1,7 +1,6 @@
import { useLazyQuery } from '@apollo/react-hooks'
import { useLazyQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import { Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'
import { Info2, P } from 'src/components/typography'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { useEffect, useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'

View file

@ -1,6 +1,5 @@
import { useMutation } from '@apollo/react-hooks'
import { useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core/styles'
import gql from 'graphql-tag'
import React, { useEffect, useState } from 'react'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'

View file

@ -1,5 +1,4 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { useQuery, useMutation, gql } from "@apollo/client";
import * as R from 'ramda'
import React, { useState } from 'react'
import Section from 'src/components/layout/Section'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'

View file

@ -1,7 +1,6 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles, Dialog, DialogContent } from '@material-ui/core'
import classnames from 'classnames'
import gql from 'graphql-tag'
import React, { useState, useContext } from 'react'
import { useHistory } from 'react-router-dom'
import { getWizardStep, STEPS } from 'src/pages/Wizard/helper'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import Section from 'src/components/layout/Section'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React from 'react'
import Section from 'src/components/layout/Section'

View file

@ -1,6 +1,5 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import React, { useState, useEffect } from 'react'
import { H4, Info3 } from 'src/components/typography'
import FormRenderer from 'src/pages/Services/FormRenderer'

View file

@ -1,7 +1,6 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, gql } from "@apollo/client";
import { makeStyles, Box } from '@material-ui/core'
import classnames from 'classnames'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import InfoMessage from 'src/components/InfoMessage'
import { HelpTooltip } from 'src/components/Tooltip'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { P, H4 } from 'src/components/typography'

View file

@ -1,6 +1,5 @@
import { useMutation, useQuery } from '@apollo/react-hooks'
import { useMutation, useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import { P, H4 } from 'src/components/typography'
import FormRenderer from 'src/pages/Services/FormRenderer'

View file

@ -1,7 +1,6 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import { Formik, Form, Field } from 'formik'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import PromptWhenDirty from 'src/components/PromptWhenDirty'
import { H4 } from 'src/components/typography'

View file

@ -1,7 +1,6 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { getEquivalentCode } from '@lamassu/coins/lightUtils'
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { H4, Info3 } from 'src/components/typography'

View file

@ -1,7 +1,6 @@
import { useQuery } from '@apollo/react-hooks'
import { useQuery, gql } from "@apollo/client";
import { getEquivalentCode } from '@lamassu/coins/lightUtils'
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { H4 } from 'src/components/typography'

View file

@ -1,6 +1,5 @@
import { useQuery, useMutation } from '@apollo/react-hooks'
import { useQuery, useMutation, gql } from "@apollo/client";
import { makeStyles } from '@material-ui/core'
import gql from 'graphql-tag'
import * as R from 'ramda'
import React, { useState } from 'react'
import { H4, Info3 } from 'src/components/typography'

View file

@ -1,9 +1,6 @@
import { ApolloProvider } from '@apollo/react-hooks'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { ApolloClient } from 'apollo-client'
import { ApolloLink } from 'apollo-link'
import { onError } from 'apollo-link-error'
import { createUploadLink } from 'apollo-upload-client'
import { ApolloClient, ApolloProvider, InMemoryCache, ApolloLink } from "@apollo/client";
import { onError } from "@apollo/client/link/error"
import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
import React, { useContext } from 'react'
import { useHistory, useLocation } from 'react-router-dom'