+
+ className={classnames(percentageClasses, 'bg-java')}
+ style={{ width: `${value}%` }}>
{buildPercentageView(value, 'cashIn')}
+ className={classnames(percentageClasses, 'bg-neon')}
+ style={{ width: `${100 - value}%` }}>
{buildPercentageView(100 - value, 'cashOut')}
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefLineChart.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefLineChart.jsx
index 9517a4bd..2dc3787e 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefLineChart.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefLineChart.jsx
@@ -2,8 +2,6 @@ import * as d3 from 'd3'
import * as R from 'ramda'
import React, { useEffect, useRef, useCallback } from 'react'
-import { backgroundColor, zircon, primaryColor } from 'src/styling/variables'
-
const transactionProfit = R.prop('profit')
const mockPoint = (tx, offsetMs, profit) => {
@@ -106,7 +104,7 @@ const RefLineChart = ({
.attr('y', -margin.top)
.attr('width', width + margin.left + margin.right)
.attr('height', height + margin.top)
- .attr('fill', backgroundColor)
+ .attr('fill', 'var(--ghost)')
.attr('transform', `translate(${0},${margin.top})`)
// gradient color for the graph (creates the "url", the color is applied by calling the url, in the area color fill )
@@ -120,9 +118,9 @@ const RefLineChart = ({
.attr('y2', '100%')
.selectAll('stop')
.data([
- { offset: '0%', color: zircon },
- { offset: '25%', color: zircon },
- { offset: '100%', color: backgroundColor }
+ { offset: '0%', color: 'var(--zircon)' },
+ { offset: '25%', color: 'var(--zircon)' },
+ { offset: '100%', color: 'var(--ghost)' }
])
.enter()
.append('stop')
@@ -181,7 +179,7 @@ const RefLineChart = ({
.attr('fill', 'none')
.attr('stroke-width', '2')
.attr('stroke-linejoin', 'round')
- .attr('stroke', primaryColor)
+ .attr('stroke', 'var(--zodiac)')
}, [realData, timeFrame, previousTimeData, previousProfit])
useEffect(() => {
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.jsx
index 3319118b..e1ef4388 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.jsx
@@ -4,14 +4,6 @@ import { getTimezoneOffset } from 'date-fns-tz'
import { add, format, startOfWeek, startOfYear } from 'date-fns/fp'
import React, { useCallback, useEffect, useMemo, useRef } from 'react'
-import {
- java,
- neon,
- subheaderDarkColor,
- offColor,
- fontSecondary,
- backgroundColor
-} from 'src/styling/variables'
import { numberToFiatAmount } from 'src/utils/number'
import { MINUTE, DAY, WEEK, MONTH } from 'src/utils/time'
@@ -143,7 +135,7 @@ const Graph = ({ data, timeFrame, timezone }) => {
.attr('y', GRAPH_MARGIN.top)
.attr('width', GRAPH_WIDTH)
.attr('height', GRAPH_HEIGHT - GRAPH_MARGIN.top - GRAPH_MARGIN.bottom)
- .attr('fill', backgroundColor)
+ .attr('fill', 'var(--ghost)')
},
[GRAPH_MARGIN]
)
@@ -191,8 +183,8 @@ const Graph = ({ data, timeFrame, timezone }) => {
const buildGrid = useCallback(
g => {
- g.attr('stroke', subheaderDarkColor)
- .attr('fill', subheaderDarkColor)
+ g.attr('stroke', 'var(--zircon2)')
+ .attr('fill', 'var(--zircon2)')
// Vertical lines
.call(g =>
g
@@ -277,10 +269,10 @@ const Graph = ({ data, timeFrame, timezone }) => {
() =>
d3
.selectAll('.tick text')
- .style('stroke', offColor)
- .style('fill', offColor)
+ .style('stroke', 'var(--comet)')
+ .style('fill', 'var(--comet)')
.style('stroke-width', 0)
- .style('font-family', fontSecondary),
+ .style('font-family', 'var(--museo)'),
[]
)
@@ -288,10 +280,10 @@ const Graph = ({ data, timeFrame, timezone }) => {
() =>
d3
.selectAll('text')
- .style('stroke', offColor)
- .style('fill', offColor)
+ .style('stroke', 'var(--comet)')
+ .style('fill', 'var(--comet)')
.style('stroke-width', 0)
- .style('font-family', fontSecondary),
+ .style('font-family', 'var(--museo)'),
[]
)
@@ -311,7 +303,9 @@ const Graph = ({ data, timeFrame, timezone }) => {
return x(created.setTime(created.getTime() + offset))
})
.attr('cy', d => y(new BigNumber(d.fiat).toNumber()))
- .attr('fill', d => (d.txClass === 'cashIn' ? java : neon))
+ .attr('fill', d =>
+ d.txClass === 'cashIn' ? 'var(--java)' : 'var(--neon)'
+ )
.attr('r', 3.5)
},
[data, offset, x, y]
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/InfoWithLabel.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/InfoWithLabel.jsx
index fef78ca2..367f9c7c 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/InfoWithLabel.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/InfoWithLabel.jsx
@@ -2,10 +2,10 @@ import React from 'react'
import { Info1, Label1 } from 'src/components/typography/index'
const InfoWithLabel = ({ info, label }) => {
return (
- <>
-
{info}
-
{label}
- >
+
+ {info}
+ {label}
+
)
}
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Nav.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Nav.jsx
index e12ac98b..e81c28c3 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Nav.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Nav.jsx
@@ -1,16 +1,11 @@
-import { makeStyles } from '@mui/styles'
import classnames from 'classnames'
import * as R from 'ramda'
import React, { useState } from 'react'
import { H4 } from 'src/components/typography'
-import styles from './SystemPerformance.styles'
-
-const useStyles = makeStyles(styles)
const ranges = ['Month', 'Week', 'Day']
const Nav = ({ handleSetRange, showPicker }) => {
- const classes = useStyles()
const [clickedItem, setClickedItem] = useState('Day')
const isSelected = R.equals(clickedItem)
@@ -20,22 +15,20 @@ const Nav = ({ handleSetRange, showPicker }) => {
}
return (
-
-
-
{'System performance'}
-
+
+
{'System performance'}
{showPicker && (
-
+
{ranges.map((it, idx) => {
return (
handleClick(e.target.innerText)}
- className={
- isSelected(it)
- ? classnames(classes.newHighlightedLabel, classes.navButton)
- : classnames(classes.label, classes.navButton)
- }>
+ className={classnames({
+ 'cursor-pointer text-comet': true,
+ 'font-bold text-zodiac border-b-zodiac border-b-2':
+ isSelected(it)
+ })}>
{it}
)
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.jsx
index cd3552b1..838ded7e 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.jsx
@@ -1,12 +1,10 @@
-import { useQuery, gql } from "@apollo/client";
-import Grid from '@mui/material/Grid'
-import { makeStyles } from '@mui/styles'
+import { useQuery, gql } from '@apollo/client'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
import { isAfter } from 'date-fns/fp'
import * as R from 'ramda'
import React, { useState } from 'react'
-import { Label1, Label2, P } from 'src/components/typography/index'
+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'
@@ -23,12 +21,10 @@ import LineChart from './Graphs/RefLineChart'
import Scatterplot from './Graphs/RefScatterplot'
import InfoWithLabel from './InfoWithLabel'
import Nav from './Nav'
-import styles from './SystemPerformance.styles'
BigNumber.config({ ROUNDING_MODE: BigNumber.ROUND_HALF_UP })
const getFiats = R.map(R.prop('fiat'))
-const useStyles = makeStyles(styles)
const GET_DATA = gql`
query getData($excludeTestingCustomers: Boolean) {
@@ -54,7 +50,6 @@ const GET_DATA = gql`
`
const SystemPerformance = () => {
- const classes = useStyles()
const [selectedRange, setSelectedRange] = useState('Day')
const { data, loading } = useQuery(GET_DATA, {
variables: { excludeTestingCustomers: true }
@@ -162,17 +157,17 @@ const SystemPerformance = () => {
const percentChange = getPercentChange()
const percentageClasses = {
- [classes.percentDown]: percentChange < 0,
- [classes.percentUp]: percentChange > 0,
- [classes.percentNeutral]: percentChange === 0
+ 'text-tomato': percentChange < 0,
+ 'text-spring4': percentChange > 0,
+ 'text-comet': percentChange === 0,
+ 'flex items-center justify-center gap-1': true
}
const getPercentageIcon = () => {
- if (percentChange === 0)
- return
- if (percentChange > 0)
- return
- return
+ const className = 'w-4 h-4'
+ if (percentChange === 0) return
+ if (percentChange > 0) return
+ return
}
return (
@@ -182,74 +177,67 @@ const SystemPerformance = () => {
handleSetRange={setSelectedRange}
/>
{!loading && R.isEmpty(data.transactions) && (
-
+
)}
{!loading && !R.isEmpty(data.transactions) && (
- <>
-
-
-
-
-
-
-
- {/* todo new customers */}
-
-
-
-
-
Transactions
-
-
- {timezones[timezone]?.short ?? timezones[timezone]?.long}{' '}
- timezone
-
-
-
+
+
+
+
+
+
+
+
Transactions
+
+
+ {timezones[timezone]?.short ?? timezones[timezone]?.long}{' '}
+ timezone
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
Profit from commissions
-
-
+
+
{`${getProfit(transactionsToShow).toFormat(2)} ${
data?.config.locale_fiatCurrency
}`}
-
-
+
+
{getPercentageIcon()}
{`${new BigNumber(percentChange).toFormat(2)}%`}
-
+
{
previousTimeData={transactionsLastTimePeriod}
previousProfit={getProfit(transactionsLastTimePeriod)}
/>
-
-
-
+
+
+
Direction
-
-
+
+
- In
+
+ In
+
-
-
-
-
-
-
-
- >
+
+
+
+
+
)}
>
)
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.styles.js b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.styles.js
deleted file mode 100644
index 0a54b9a9..00000000
--- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/SystemPerformance.styles.js
+++ /dev/null
@@ -1,154 +0,0 @@
-import {
- offColor,
- offDarkColor,
- spacer,
- primaryColor,
- fontSize3,
- fontSecondary,
- fontColor,
- spring4,
- tomato,
- comet
-} from 'src/styling/variables'
-
-const styles = {
- titleWrapper: {
- display: 'flex',
- justifyContent: 'space-between',
- alignItems: 'center',
- flexDirection: 'row'
- },
- titleAndButtonsContainer: {
- display: 'flex'
- },
- error: {
- marginLeft: 12
- },
- icon: {
- marginRight: 6
- },
- h4: {
- margin: 0,
- marginRight: spacer * 8
- },
- label: {
- cursor: 'pointer',
- minHeight: 0,
- minWidth: 0,
- padding: 0,
- color: offColor,
- textTransform: 'none',
- borderBottom: `2px solid transparent`,
- display: 'inline-block',
- lineHeight: 1.5,
- '&:hover': {
- backgroundColor: 'transparent'
- }
- },
- newHighlightedLabel: {
- cursor: 'pointer',
- color: primaryColor,
- fontWeight: 700,
- borderRadius: 0,
- minHeight: 0,
- minWidth: 0,
- textTransform: 'none',
- borderBottom: `2px solid ${primaryColor}`,
- display: 'inline-block',
- lineHeight: 1.5,
- '&:hover': {
- backgroundColor: 'transparent'
- }
- },
- navButton: {
- marginLeft: 24
- },
- navContainer: {
- display: 'flex'
- },
- percentUp: {
- fontSize: fontSize3,
- fontFamily: fontSecondary,
- fontWeight: 700,
- color: spring4,
- height: 10
- },
- percentDown: {
- fontSize: fontSize3,
- fontFamily: fontSecondary,
- fontWeight: 700,
- color: tomato,
- height: 13
- },
- percentNeutral: {
- fontSize: fontSize3,
- fontFamily: fontSecondary,
- fontWeight: 700,
- color: comet
- },
- profitContainer: {
- display: 'flex',
- justifyContent: 'space-between',
- margin: '23px 26px -30px 16px',
- position: 'relative'
- },
- profitLabel: {
- fontSize: fontSize3,
- fontFamily: fontSecondary,
- fontWeight: 700,
- color: fontColor
- },
- directionIcon: {
- width: 16,
- height: 16,
- marginBottom: -2,
- marginRight: 4
- },
- emptyTransactions: {
- paddingTop: 40
- },
- commissionProfitTitle: {
- marginBottom: 16
- },
- graphHeader: {
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- justifyContent: 'space-between',
- marginBottom: 16
- },
- labelWrapper: {
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- '& > div': {
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- marginLeft: 15,
- '&:first-child': {
- marginLeft: 0
- },
- '& > p': {
- marginLeft: 8
- }
- }
- },
- txGraphContainer: {
- height: 300,
- marginTop: 30
- },
- commissionsGraphContainer: {
- height: 250,
- marginTop: 30
- },
- verticalLine: {
- height: 15,
- width: 1,
- backgroundColor: offDarkColor,
- marginLeft: 31,
- marginRight: 16
- }
-}
-
-export default styles
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.jsx
index 94d1c68b..37362174 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.jsx
@@ -1,12 +1,11 @@
-import { useQuery, gql } from "@apollo/client";
-import { makeStyles, withStyles } from '@mui/styles'
+import { useQuery, gql } from '@apollo/client'
+import { styled } from '@mui/material/styles'
import Table from '@mui/material/Table'
import TableBody from '@mui/material/TableBody'
import TableCell from '@mui/material/TableCell'
import TableContainer from '@mui/material/TableContainer'
import TableHead from '@mui/material/TableHead'
import TableRow from '@mui/material/TableRow'
-import classnames from 'classnames'
import * as R from 'ramda'
import React from 'react'
import { useHistory } from 'react-router-dom'
@@ -15,11 +14,8 @@ 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 TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
import { fromNamespace } from 'src/utils/config'
-import styles from './MachinesTable.styles'
-
// percentage threshold where below this number the text in the cash cassettes percentage turns red
const PERCENTAGE_THRESHOLD = 20
@@ -29,27 +25,20 @@ const GET_CONFIG = gql`
}
`
-const useStyles = makeStyles(styles)
+const StyledCell = styled(TableCell)({
+ borderBottom: '4px solid white',
+ padding: 0,
+ paddingLeft: '15px'
+})
-const StyledCell = withStyles({
- root: {
- borderBottom: '4px solid white',
- padding: 0,
- paddingLeft: 15
- }
-})(TableCell)
-
-const HeaderCell = withStyles({
- root: {
- borderBottom: '4px solid white',
- padding: 0,
- paddingLeft: 15,
- backgroundColor: 'white'
- }
-})(TableCell)
+const HeaderCell = styled(TableCell)({
+ borderBottom: '4px solid white',
+ padding: 0,
+ paddingLeft: '15px',
+ backgroundColor: 'white'
+})
const MachinesTable = ({ machines = [], numToRender }) => {
- const classes = useStyles()
const history = useHistory()
const { data } = useQuery(GET_CONFIG)
@@ -69,7 +58,7 @@ const MachinesTable = ({ machines = [], numToRender }) => {
R.defaultTo(PERCENTAGE_THRESHOLD)
)(fillingPercentageSettings)
return percent < percentageThreshold ? (
-
{`${percent}%`}
+
{`${percent}%`}
) : (
{`${percent}%`}
)
@@ -87,30 +76,32 @@ const MachinesTable = ({ machines = [], numToRender }) => {
)
return (
-
+
-
-
Machines
+
+
+ Machines
+
-
-
Status
+
+
+ Status
+
- {/*
-
-
-
- */}
{R.times(R.identity, maxNumberOfCassettes).map((it, idx) => (
-
+
- {it + 1}
+
+ {' '}
+ {it + 1}
+
))}
@@ -122,20 +113,23 @@ const MachinesTable = ({ machines = [], numToRender }) => {
return (
redirect(machine)}
- className={classnames(classes.row)}
+ className="boder-b-0 bg-ghost"
key={machine.deviceId + idx}>
-
-
+
+
{machine.name}
redirect(machine)}
/>
-
+
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.styles.js b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.styles.js
index 7f466583..b8774833 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.styles.js
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/MachinesTable.styles.js
@@ -6,10 +6,6 @@ import {
} from 'src/styling/variables'
const styles = {
- container: {
- display: 'flex',
- justifyContent: 'space-between'
- },
label: {
margin: 0,
color: offColor
@@ -45,30 +41,12 @@ const styles = {
bottom: 160,
marginBottom: 0
},
- upperButtonLabel: {
- textAlign: 'center',
- marginBottom: 0,
- marginTop: 0
- },
statusHeader: {
marginLeft: 2
},
- table: {
- maxHeight: 440,
- '&::-webkit-scrollbar': {
- width: 7
- },
- '&::-webkit-scrollbar-thumb': {
- backgroundColor: offColor,
- borderRadius: 5
- }
- },
tableBody: {
overflow: 'auto'
},
- h4: {
- marginTop: 0
- },
tl2: {
display: 'inline'
},
@@ -76,11 +54,9 @@ const styles = {
display: 'inline'
},
machinesTableContainer: {
- marginTop: 10,
height: 220
},
expandedMachinesTableContainer: {
- marginTop: 10,
height: 414
},
centerLabel: {
diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/SystemStatus.jsx b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/SystemStatus.jsx
index ff01f03d..7b043d1a 100644
--- a/new-lamassu-admin/src/pages/Dashboard/SystemStatus/SystemStatus.jsx
+++ b/new-lamassu-admin/src/pages/Dashboard/SystemStatus/SystemStatus.jsx
@@ -1,18 +1,12 @@
-import { useQuery, gql } from "@apollo/client";
+import { useQuery, gql } from '@apollo/client'
import Button from '@mui/material/Button'
-import Grid from '@mui/material/Grid'
-import { makeStyles } from '@mui/styles'
import classnames from 'classnames'
import * as R from 'ramda'
import React from 'react'
import { cardState as cardState_ } from 'src/components/CollapsibleCard'
-// import ActionButton from 'src/components/buttons/ActionButton'
import { H4, TL2, Label1 } from 'src/components/typography'
import MachinesTable from './MachinesTable'
-import styles from './MachinesTable.styles'
-
-const useStyles = makeStyles(styles)
// number of machines in the table to render on page load
const NUM_TO_RENDER = 4
@@ -59,29 +53,28 @@ const GET_DATA = gql`
} */
const SystemStatus = ({ onReset, onExpand, size }) => {
- const classes = useStyles()
const { data, loading } = useQuery(GET_DATA)
const machines = R.path(['machines'])(data) ?? []
const showAllItems = size === cardState_.EXPANDED
const machinesTableContainerClasses = {
- [classes.machinesTableContainer]: !showAllItems,
- [classes.expandedMachinesTableContainer]: showAllItems
+ 'h-55': !showAllItems,
+ 'h-103': showAllItems
}
// const uptime = data?.uptime ?? [{}]
return (
<>
-
-
System status {' '}
+
+
System status
{showAllItems && (
-
+
+ className="p-0 text-zodiac normal-case">
{'Show less'}
@@ -89,54 +82,29 @@ const SystemStatus = ({ onReset, onExpand, size }) => {
{!loading && (
<>
-
- {/*
- On hold until system uptime is implemented
-
-
- {parseUptime(uptime[0].time)}
-
- System up time
- */}
-
- {data?.serverVersion}
- server version
-
-
- {/*
- On hold until system update features are implemented
- console.log('Upgrade button clicked')}>
- Update to v10.6.0
- */}
-
-
-
-
-
-
-
+
+ {data?.serverVersion}
+ server version
+
+
+
+
{!showAllItems && machines.length > NUM_TO_RENDER && (
-
-
+
+
onExpand()}
size="small"
disableRipple
disableFocusRipple
- className={classes.button}>
+ className="p-0 text-zodiac normal-case">
{`Show all (${machines.length})`}
-
+
)}
>
)}
diff --git a/new-lamassu-admin/src/pages/Locales/Locales.jsx b/new-lamassu-admin/src/pages/Locales/Locales.jsx
index fcb32433..06a526da 100644
--- a/new-lamassu-admin/src/pages/Locales/Locales.jsx
+++ b/new-lamassu-admin/src/pages/Locales/Locales.jsx
@@ -1,5 +1,4 @@
-import { useQuery, useMutation, gql } from "@apollo/client";
-import { makeStyles } from '@mui/styles'
+import { useQuery, useMutation, gql } from '@apollo/client'
import * as R from 'ramda'
import React, { useState } from 'react'
import Modal from 'src/components/Modal'
@@ -15,7 +14,6 @@ import { Link, SupportLinkButton } from 'src/components/buttons'
import { Table as EditableTable } from 'src/components/editableTable'
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
-import { styles } from './Locales.styles'
import {
mainFields,
overrides,
@@ -25,8 +23,6 @@ import {
overridesDefaults
} from './helper'
-const useStyles = makeStyles(styles)
-
const GET_DATA = gql`
query getData {
config
@@ -75,8 +71,6 @@ const GET_MARKETS = gql`
`
const FiatCurrencyChangeAlert = ({ open, close, save }) => {
- const classes = useStyles()
-
return (
{
Also, if you have cash-out enabled, you must define new dispenser bill
counts for the new currency for cash-out on the new currency to work.
-
+
Cancel
-
+
Save
diff --git a/new-lamassu-admin/src/pages/Locales/Locales.styles.js b/new-lamassu-admin/src/pages/Locales/Locales.styles.js
deleted file mode 100644
index 7470d8f6..00000000
--- a/new-lamassu-admin/src/pages/Locales/Locales.styles.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const styles = {
- rightAligned: {
- marginTop: '20px',
- marginLeft: 'auto',
- marginBottom: '20px'
- },
- rightLink: {
- marginLeft: '20px'
- }
-}
-
-export { styles }
diff --git a/new-lamassu-admin/src/styling/global/global.css b/new-lamassu-admin/src/styling/global/global.css
index 9186c0ca..906d56a0 100644
--- a/new-lamassu-admin/src/styling/global/global.css
+++ b/new-lamassu-admin/src/styling/global/global.css
@@ -22,6 +22,7 @@
--ghost: #fafbff;
--zircon: #ebefff;
+ --zircon2: #dbdfed;
--java: #16d6d3;
--neon: #5a67ff;
@@ -45,6 +46,8 @@
--color-tomato: var(--tomato);
--color-ghost: var(--ghost);
--color-zircon: var(--zircon);
+ --color-zircon2: var(--zircon2);
+ --color-java: var(--java);
--color-neon: var(--neon);
--color-malachite: var(--malachite);
--color-orange-yellow: var(--orange-yellow);
diff --git a/new-lamassu-admin/src/styling/theme.js b/new-lamassu-admin/src/styling/theme.js
index f0bd2450..230160a3 100644
--- a/new-lamassu-admin/src/styling/theme.js
+++ b/new-lamassu-admin/src/styling/theme.js
@@ -151,6 +151,13 @@ theme = createTheme(theme, {
}
}
},
+ MuiPaper: {
+ styleOverrides: {
+ elevation1: {
+ boxShadow: '0 0 4px 0 rgba(0, 0, 0, 0.08)'
+ }
+ }
+ },
MuiChip: {
styleOverrides: {
root: {