diff --git a/new-lamassu-admin/src/pages/Blacklist/Blacklist.jsx b/new-lamassu-admin/src/pages/Blacklist/Blacklist.jsx
index 694dd839..637fb7e8 100644
--- a/new-lamassu-admin/src/pages/Blacklist/Blacklist.jsx
+++ b/new-lamassu-admin/src/pages/Blacklist/Blacklist.jsx
@@ -1,5 +1,4 @@
-import { useQuery, useMutation, gql } from "@apollo/client";
-import Box from '@mui/material/Box'
+import { useQuery, useMutation, gql } from '@apollo/client'
import Dialog from '@mui/material/Dialog'
import DialogContent from '@mui/material/DialogContent'
import DialogActions from '@mui/material/DialogActions'
@@ -14,7 +13,12 @@ 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 { Link, Button, IconButton, SupportLinkButton } from 'src/components/buttons'
+import {
+ Link,
+ Button,
+ IconButton,
+ SupportLinkButton
+} from 'src/components/buttons'
import { fromNamespace, toNamespace } from 'src/utils/config'
import styles from './Blacklist.styles'
@@ -234,12 +238,8 @@ const Blacklist = () => {
}
]}>
{!advancedSettings && (
-
-
+
+
Enable paper wallet (only)
{
to scan an address from their own wallet.
-
-
+
+
Reject reused addresses
{
label="Reject Address Reuse"
/>
-
+
setShowModal(true)}>
Blacklist new addresses
-
+
)}
{!advancedSettings && (
diff --git a/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.jsx b/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.jsx
index 7e5b4dd0..3a6555ba 100644
--- a/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.jsx
+++ b/new-lamassu-admin/src/pages/Blacklist/BlacklistModal.jsx
@@ -1,4 +1,3 @@
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import { Formik, Form, Field } from 'formik'
import * as R from 'ramda'
@@ -55,11 +54,11 @@ const BlackListModal = ({ onClose, addToBlacklist, errorMsg }) => {
{!R.isNil(errorMsg) &&
{errorMsg} }
-
+
Blacklist address
-
+
)
diff --git a/new-lamassu-admin/src/pages/Customers/CustomerProfile.jsx b/new-lamassu-admin/src/pages/Customers/CustomerProfile.jsx
index bd52274d..219c3cb5 100644
--- a/new-lamassu-admin/src/pages/Customers/CustomerProfile.jsx
+++ b/new-lamassu-admin/src/pages/Customers/CustomerProfile.jsx
@@ -1,6 +1,5 @@
-import { useQuery, useMutation, useLazyQuery, gql } from "@apollo/client";
+import { useQuery, useMutation, useLazyQuery, gql } from '@apollo/client'
import Breadcrumbs from '@mui/material/Breadcrumbs'
-import Box from '@mui/material/Box'
import DialogActions from '@mui/material/DialogActions'
import DialogContent from '@mui/material/DialogContent'
import Dialog from '@mui/material/Dialog'
@@ -637,10 +636,7 @@ const CustomerProfile = memo(() => {
{isOverview && (
-
+
{
setShowCompliance={() => setShowCompliance(!showCompliance)}
timezone={timezone}
/>
-
+
{
}
appendixRight={
-
+
setShowCreationModal(true)}>
Add new user
-
+
}
labels={[
{ label: 'Cash-in', icon: },
diff --git a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.jsx b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.jsx
index 4dd04418..3b285039 100644
--- a/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.jsx
+++ b/new-lamassu-admin/src/pages/Customers/components/CustomerDetails.jsx
@@ -1,4 +1,3 @@
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import React, { memo } from 'react'
@@ -51,9 +50,9 @@ const CustomerDetails = memo(({ customer, photosData, locale, timezone }) => {
})
return (
-
+
-
+
@@ -64,7 +63,7 @@ const CustomerDetails = memo(({ customer, photosData, locale, timezone }) => {
: getFormattedPhone(phone, locale.country)}
-
+
{elements.map(({ size, header }, idx) => (
{
{header}
))}
-
-
+
+
{elements.map(({ size, value }, idx) => (
{
{value}
))}
-
-
-
+
+
+
)
})
diff --git a/new-lamassu-admin/src/pages/Customers/components/IdCardPhotoCard.jsx b/new-lamassu-admin/src/pages/Customers/components/IdCardPhotoCard.jsx
index a2b81cd7..9433c255 100644
--- a/new-lamassu-admin/src/pages/Customers/components/IdCardPhotoCard.jsx
+++ b/new-lamassu-admin/src/pages/Customers/components/IdCardPhotoCard.jsx
@@ -1,4 +1,3 @@
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import React, { memo } from 'react'
@@ -35,7 +34,7 @@ const IdCardPhotoCard = memo(({ customerData, updateCustomer }) => {
updateCustomer({ idCardPhotoOverride: OVERRIDE_AUTHORIZED })
}
reject={() => updateCustomer({ idCardPhotoOverride: OVERRIDE_REJECTED })}>
-
+
{customerData.idCardPhotoPath ? (
{
) : (
)}
-
+
)
})
diff --git a/new-lamassu-admin/src/pages/Customers/components/IdDataCard.jsx b/new-lamassu-admin/src/pages/Customers/components/IdDataCard.jsx
index 8ead9dc0..1cb0fb73 100644
--- a/new-lamassu-admin/src/pages/Customers/components/IdDataCard.jsx
+++ b/new-lamassu-admin/src/pages/Customers/components/IdDataCard.jsx
@@ -1,4 +1,3 @@
-import Box from '@mui/material/Box'
import { differenceInYears, format, parse } from 'date-fns/fp'
import * as R from 'ramda'
import React, { memo } from 'react'
@@ -77,11 +76,11 @@ const IdDataCard = memo(({ customerData, updateCustomer }) => {
updateCustomer({ idCardDataOverride: OVERRIDE_AUTHORIZED })
}
reject={() => updateCustomer({ idCardDataOverride: OVERRIDE_REJECTED })}>
-
+
{elements.map(({ header, display, size }, idx) => (
))}
-
+
)
})
diff --git a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.jsx b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.jsx
index ef9fbfc9..aa8ea43a 100644
--- a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.jsx
+++ b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.jsx
@@ -1,5 +1,4 @@
import { toUnit } from '@lamassu/coins/lightUtils'
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
@@ -139,8 +138,8 @@ const TransactionsList = ({ customer, data, loading }) => {
return (
<>
Transactions
-
-
+
+
{summaryElements.map(({ size, header }, idx) => (
{
{header}
))}
-
-
+
+
{summaryElements.map(({ size, value }, idx) => (
{
{value}
))}
-
-
+
+
{loading ? (
diff --git a/new-lamassu-admin/src/pages/Customers/helper.jsx b/new-lamassu-admin/src/pages/Customers/helper.jsx
index 3fa95175..6bb774b1 100644
--- a/new-lamassu-admin/src/pages/Customers/helper.jsx
+++ b/new-lamassu-admin/src/pages/Customers/helper.jsx
@@ -1,5 +1,4 @@
import React from 'react'
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import classnames from 'classnames'
import { parse, isValid, format } from 'date-fns/fp'
@@ -7,7 +6,7 @@ import { Field, useFormikContext } from 'formik'
import { parsePhoneNumberFromString } from 'libphonenumber-js'
import * as R from 'ramda'
import { H4 } from 'src/components/typography'
-import { validate as uuidValidate } from 'uuid';
+import { validate as uuidValidate } from 'uuid'
import * as Yup from 'yup'
import {
@@ -224,9 +223,9 @@ const EntryType = ({ customInfoRequirementOptions }) => {
return (
<>
-
+
Type of entry
-
+
{
/>
{displayCustomOptions && (
-
+
Type of data
-
+
{
)}
{displayRequirementOptions && (
-
+
Requirements
-
+
{
return (
<>
-
+
{title}
-
+
{isCustomInfoRequirement && (
{
}>
)}
>
- );
+ )
}
const customElements = {
diff --git a/new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscounts.jsx b/new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscounts.jsx
index a79f187d..d6940a65 100644
--- a/new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscounts.jsx
+++ b/new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscounts.jsx
@@ -1,5 +1,4 @@
-import { useQuery, useMutation, gql } from "@apollo/client";
-import Box from '@mui/material/Box'
+import { useQuery, useMutation, gql } from '@apollo/client'
import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import React, { useState } from 'react'
@@ -67,9 +66,7 @@ const IndividualDiscounts = () => {
const [showModal, setShowModal] = useState(false)
const toggleModal = () => setShowModal(!showModal)
- const { data: discountResponse, loading } = useQuery(
- GET_INDIVIDUAL_DISCOUNTS
- )
+ const { data: discountResponse, loading } = useQuery(GET_INDIVIDUAL_DISCOUNTS)
const { data: customerData, loading: customerLoading } =
useQuery(GET_CUSTOMERS)
@@ -157,16 +154,15 @@ const IndividualDiscounts = () => {
<>
{!loading && !R.isEmpty(discountResponse.individualDiscounts) && (
<>
-
-
+
+
Add new code
-
+
{
>
)}
{!loading && R.isEmpty(discountResponse.individualDiscounts) && (
-
+
It seems there are no active individual customer discounts on your
network.
Add individual discount
-
+
)}
{
return (
<>
{!loading && !R.isEmpty(codeResponse.promoCodes) && (
-
+
Add new code
-
+
)}
{!loading && !R.isEmpty(codeResponse.promoCodes) && (
<>
@@ -164,12 +158,12 @@ const PromoCodes = () => {
>
)}
{!loading && R.isEmpty(codeResponse.promoCodes) && (
-
+
Currently, there are no active promo codes on your network.
Add Code
-
+
)}
+
{elements.map(({ width, className, textAlign, header }, idx) => (
@@ -181,7 +180,7 @@ const DataTable = ({
-
+
)
}
diff --git a/new-lamassu-admin/src/pages/Maintenance/CashUnits.jsx b/new-lamassu-admin/src/pages/Maintenance/CashUnits.jsx
index 9377e1e3..8f3fa94b 100644
--- a/new-lamassu-admin/src/pages/Maintenance/CashUnits.jsx
+++ b/new-lamassu-admin/src/pages/Maintenance/CashUnits.jsx
@@ -1,6 +1,5 @@
-import { useQuery, useMutation, gql } from "@apollo/client";
+import { useQuery, useMutation, gql } from '@apollo/client'
import DialogActions from '@mui/material/DialogActions'
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import React, { useState } from 'react'
@@ -98,7 +97,11 @@ const SET_CASSETTE_BILLS = gql`
`
const GET_BATCHES_CSV = gql`
- query cashboxBatchesCsv($from: DateTimeISO, $until: DateTimeISO, $timezone: String) {
+ query cashboxBatchesCsv(
+ $from: DateTimeISO
+ $until: DateTimeISO
+ $timezone: String
+ ) {
cashboxBatchesCsv(from: $from, until: $until, timezone: $timezone)
}
`
@@ -202,155 +205,155 @@ const CashCassettes = () => {
/>
)
- return (!dataLoading && (<>
- R.path(['cashboxBatchesCsv'])(logs)}
- timezone={timezone}
- args={{ timezone }}
- />
- ) : (
- <>>
- )
- }
- ]}
- iconClassName={classes.listViewButton}
- className={classes.tableWidth}
- appendix={
-
-
- For details on configuring cash boxes and cassettes, please read
- the relevant knowledgebase article:
-
-
-
- }>
- {!showHistory && (
-
- Cash box resets
-
- {cashboxReset && (
-
- {onlyFirstToUpper(cashboxReset)}
-
- )}
- setEditingSchema(true)}
- className={classes.button}
- size="large">
-
-
-
-
- )}
-
- {!showHistory && (
+ return (
+ !dataLoading && (
<>
-
+ R.path(['cashboxBatchesCsv'])(logs)}
+ timezone={timezone}
+ args={{ timezone }}
+ />
+ ) : (
+ <>>
+ )
+ }
+ ]}
+ iconClassName={classes.listViewButton}
+ className={classes.tableWidth}
+ appendix={
+
+
+ For details on configuring cash boxes and cassettes, please read
+ the relevant knowledgebase article:
+
+
+
+ }>
+ {!showHistory && (
+
+
Cash box resets
+
+ {cashboxReset && (
+
+ {onlyFirstToUpper(cashboxReset)}
+
+ )}
+
setEditingSchema(true)}
+ className={classes.button}
+ size="large">
+
+
+
+
+ )}
+
+ {!showHistory && (
+ <>
+
- {data && R.isEmpty(machines) && (
-
+ {data && R.isEmpty(machines) && (
+
+ )}
+ >
+ )}
+ {showHistory && (
+
+ )}
+
+ {wizard && (
+ {
+ setWizard(false)
+ }}
+ error={error?.message}
+ save={onSave}
+ locale={locale}
+ />
+ )}
+ {editingSchema && (
+ setEditingSchema(null)}
+ open={true}>
+
+ We can automatically assume you emptied a bill validator's cash
+ box when the machine detects that it has been removed.
+
+
+
+ Assume the cash box is emptied whenever it's removed, creating a
+ new batch on the history screen and setting its current balance to
+ zero.
+
+
+
+ Cash boxes won't be assumed emptied when removed, nor their counts
+ modified. Instead, to update the count and create a new batch,
+ you'll click the 'Edit' button on this panel.
+
+
+ saveCashboxOption(selectedRadio)}>
+ Confirm
+
+
+
)}
>
- )}
- {showHistory && (
-
- )}
-
- {wizard && (
- {
- setWizard(false)
- }}
- error={error?.message}
- save={onSave}
- locale={locale}
- />
- )}
- {editingSchema && (
- setEditingSchema(null)}
- open={true}>
-
- We can automatically assume you emptied a bill validator's cash
- box when the machine detects that it has been removed.
-
-
-
- Assume the cash box is emptied whenever it's removed, creating a
- new batch on the history screen and setting its current balance to
- zero.
-
-
-
- Cash boxes won't be assumed emptied when removed, nor their counts
- modified. Instead, to update the count and create a new batch,
- you'll click the 'Edit' button on this panel.
-
-
- saveCashboxOption(selectedRadio)}>
- Confirm
-
-
-
- )}
- >));
+ )
+ )
}
export default CashCassettes
diff --git a/new-lamassu-admin/src/pages/Transactions/DetailsCard.jsx b/new-lamassu-admin/src/pages/Transactions/DetailsCard.jsx
index f4d87525..744ecbca 100644
--- a/new-lamassu-admin/src/pages/Transactions/DetailsCard.jsx
+++ b/new-lamassu-admin/src/pages/Transactions/DetailsCard.jsx
@@ -1,6 +1,5 @@
-import { useLazyQuery, useMutation, gql } from "@apollo/client";
+import { useLazyQuery, useMutation, gql } from '@apollo/client'
import { toUnit, formatCryptoAddress } from '@lamassu/coins/lightUtils'
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import BigNumber from 'bignumber.js'
import classNames from 'classnames'
@@ -249,7 +248,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
Available IDs
-
+
{tx.customerPhone && (
{
/>
)}
-
+
Exchange rate
diff --git a/new-lamassu-admin/src/pages/Triggers/TriggerView.jsx b/new-lamassu-admin/src/pages/Triggers/TriggerView.jsx
index b98396d6..e8e208c5 100644
--- a/new-lamassu-admin/src/pages/Triggers/TriggerView.jsx
+++ b/new-lamassu-admin/src/pages/Triggers/TriggerView.jsx
@@ -1,5 +1,4 @@
-import { useMutation, gql } from "@apollo/client";
-import Box from '@mui/material/Box'
+import { useMutation, gql } from '@apollo/client'
import { makeStyles } from '@mui/styles'
import * as R from 'ramda'
import React, { useState } from 'react'
@@ -52,9 +51,9 @@ const TriggerView = ({
}
const add = rawConfig => {
- const toSave = R.concat([{ id: uuidv4(), direction: 'both', ...rawConfig }])(
- triggers
- )
+ const toSave = R.concat([
+ { id: uuidv4(), direction: 'both', ...rawConfig }
+ ])(triggers)
return saveConfig({ variables: { config: { triggers: toServer(toSave) } } })
}
@@ -85,12 +84,12 @@ const TriggerView = ({
/>
)}
{R.isEmpty(triggers) && (
-
+
It seems there are no active compliance triggers on your network
Add first trigger
-
+
)}
>
)
diff --git a/new-lamassu-admin/src/pages/Triggers/Triggers.jsx b/new-lamassu-admin/src/pages/Triggers/Triggers.jsx
index 1043caa1..c414d443 100644
--- a/new-lamassu-admin/src/pages/Triggers/Triggers.jsx
+++ b/new-lamassu-admin/src/pages/Triggers/Triggers.jsx
@@ -1,5 +1,4 @@
-import { useQuery, useMutation, gql } from "@apollo/client";
-import Box from '@mui/material/Box'
+import { useQuery, useMutation, gql } from '@apollo/client'
import Switch from '@mui/material/Switch'
import { makeStyles } from '@mui/styles'
import classnames from 'classnames'
@@ -169,12 +168,8 @@ const Triggers = () => {
]}
className={classnames(titleSectionWidth)}>
{!subMenu && (
-
-
+
+
Reject reused addresses
{
label="Reject Address Reuse"
/>
-
-
+
+
)}
{subMenu === 'customInfoRequests' &&
!R.isEmpty(enabledCustomInfoRequests) && (
-
+
toggleWizard('newCustomRequest')()}>
+ Add new custom info request
-
+
)}
{!loading && !subMenu && !R.isEmpty(triggers) && (
-
+
+ Add new trigger
-
+
)}
{!loading && subMenu === 'customInfoRequests' && (
diff --git a/new-lamassu-admin/src/pages/Triggers/helper.jsx b/new-lamassu-admin/src/pages/Triggers/helper.jsx
index 353a7c41..cd8a18c8 100644
--- a/new-lamassu-admin/src/pages/Triggers/helper.jsx
+++ b/new-lamassu-admin/src/pages/Triggers/helper.jsx
@@ -1,4 +1,3 @@
-import Box from '@mui/material/Box'
import { makeStyles } from '@mui/styles'
import classnames from 'classnames'
import { Field, useFormikContext } from 'formik'
@@ -363,9 +362,9 @@ const Type = ({ ...props }) => {
return (
<>
-
+
Choose trigger type
-
+
-
+
Choose a requirement
-
+
{
: getView(requirementOptions, 'display')(requirement)
return (
-
+
{`${display} ${isSuspend ? 'for' : ''}`}
{isSuspend && (
{
/>
)}
{isSuspend && 'days'}
-
+
)
}
@@ -783,7 +782,7 @@ const RequirementView = ({
: getView(requirementOptions, 'display')(requirement)
const isSuspend = requirement === 'suspend'
return (
-
+
{`${display} ${isSuspend ? 'for' : ''}`}
{isSuspend && (
@@ -791,7 +790,7 @@ const RequirementView = ({
)}
{isSuspend && 'days'}
-
+
)
}
@@ -833,16 +832,16 @@ const DisplayThreshold = ({ config, currency, isEdit }) => {
switch (config?.triggerType) {
case 'txAmount':
return (
-
+
{Threshold}
{currency}
-
+
)
case 'txVolume':
return (
-
+
{Threshold}
{currency}
@@ -854,11 +853,11 @@ const DisplayThreshold = ({ config, currency, isEdit }) => {
days
-
+
)
case 'txVelocity':
return (
-
+
{Threshold}
transactions in
@@ -867,16 +866,16 @@ const DisplayThreshold = ({ config, currency, isEdit }) => {
days
-
+
)
case 'consecutiveDays':
return (
-
+
{ThresholdDays}
days
-
+
)
default:
return ''
diff --git a/new-lamassu-admin/src/pages/UserManagement/UserManagement.jsx b/new-lamassu-admin/src/pages/UserManagement/UserManagement.jsx
index 271ccba7..488c420a 100644
--- a/new-lamassu-admin/src/pages/UserManagement/UserManagement.jsx
+++ b/new-lamassu-admin/src/pages/UserManagement/UserManagement.jsx
@@ -1,6 +1,5 @@
-import { useQuery, useMutation, useLazyQuery, gql } from "@apollo/client";
+import { useQuery, useMutation, useLazyQuery, gql } from '@apollo/client'
import Chip from '@mui/material/Chip'
-import Box from '@mui/material/Box'
import Switch from '@mui/material/Switch'
import { makeStyles } from '@mui/styles'
import { startAttestation } from '@simplewebauthn/browser'
@@ -242,24 +241,21 @@ const Users = () => {
return (
<>
-
-
- {
- dispatch({
- type: 'open',
- payload: 'showCreateUserModal'
- })
- }}>
- Add new user
-
-
+ {
+ dispatch({
+ type: 'open',
+ payload: 'showCreateUserModal'
+ })
+ }}>
+ Add new user
+
+ }
+ />
Twilio (SMS service)
-
+
Will you setup a two way machine or compliance?
@@ -112,7 +111,7 @@ function Twilio({ doContinue }) {
compliance triggers
-
+
-
- To set up Twilio please read the instructions from our support portal.
-
+
+
+
+ To set up Twilio please read the instructions from our support
+ portal.
+
+