Feat: make footer expand on hover
chore: rename status variable from showExpandBtn to canExpand Chore: disable notific. card, redirect to dashboard on logo click This commit also fixes eslint warnings about anonymous exports On the header, the Dashboard link is removed, in favour of adding a redirect on click on the Lamassu Admin text. "Machines" header link is removed as well, and a machine profile can be accessed through the dashboard -> System Status card
This commit is contained in:
parent
c21cdb13e1
commit
bd2d657e2c
5 changed files with 15 additions and 11 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
import { makeStyles } from '@material-ui/core'
|
import { makeStyles } from '@material-ui/core'
|
||||||
import classnames from 'classnames'
|
import classnames from 'classnames'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { ReactComponent as CashIn } from 'src/styling/icons/direction/cash-in.svg'
|
import { ReactComponent as CashIn } from 'src/styling/icons/direction/cash-in.svg'
|
||||||
import { ReactComponent as CashOut } from 'src/styling/icons/direction/cash-out.svg'
|
import { ReactComponent as CashOut } from 'src/styling/icons/direction/cash-out.svg'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,8 @@ const styles = {
|
||||||
statusHeader: {
|
statusHeader: {
|
||||||
marginLeft: 2
|
marginLeft: 2
|
||||||
},
|
},
|
||||||
/* // temporary class, until alerts are enabled. Delete this table class and uncomment the other one
|
/* table: {
|
||||||
table: {
|
maxHeight: 440,
|
||||||
height: 463,
|
|
||||||
'&::-webkit-scrollbar': {
|
'&::-webkit-scrollbar': {
|
||||||
width: 7
|
width: 7
|
||||||
},
|
},
|
||||||
|
|
@ -62,8 +61,10 @@ const styles = {
|
||||||
borderRadius: 5
|
borderRadius: 5
|
||||||
}
|
}
|
||||||
}, */
|
}, */
|
||||||
|
// temporary, when notifications are enabled delete this one and decomment above
|
||||||
table: {
|
table: {
|
||||||
maxHeight: 440,
|
maxHeight: 465,
|
||||||
|
minHeight: 465,
|
||||||
'&::-webkit-scrollbar': {
|
'&::-webkit-scrollbar': {
|
||||||
width: 7
|
width: 7
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { zircon } from 'src/styling/variables'
|
import { zircon } from 'src/styling/variables'
|
||||||
|
|
||||||
export default {
|
const styles = {
|
||||||
expandButton: {
|
expandButton: {
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
|
|
@ -41,3 +41,5 @@ export default {
|
||||||
flexDirection: 'column'
|
flexDirection: 'column'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default styles
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { offColor } from 'src/styling/variables'
|
||||||
|
|
||||||
const { p } = typographyStyles
|
const { p } = typographyStyles
|
||||||
|
|
||||||
export default {
|
const styles = {
|
||||||
wrapper: {
|
wrapper: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|
@ -82,3 +82,5 @@ export default {
|
||||||
width: 215
|
width: 215
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default styles
|
||||||
|
|
|
||||||
|
|
@ -51,18 +51,18 @@ const useStyles = makeStyles({
|
||||||
})
|
})
|
||||||
|
|
||||||
const tree = [
|
const tree = [
|
||||||
{
|
/* {
|
||||||
key: 'dashboard',
|
key: 'dashboard',
|
||||||
label: 'Dashboard',
|
label: 'Dashboard',
|
||||||
route: '/dashboard',
|
route: '/dashboard',
|
||||||
component: Dashboard
|
component: Dashboard
|
||||||
},
|
}, */
|
||||||
{
|
/* {
|
||||||
key: 'machines',
|
key: 'machines',
|
||||||
label: 'Machines',
|
label: 'Machines',
|
||||||
route: '/machines',
|
route: '/machines',
|
||||||
component: Machines
|
component: Machines
|
||||||
},
|
}, */
|
||||||
{
|
{
|
||||||
key: 'transactions',
|
key: 'transactions',
|
||||||
label: 'Transactions',
|
label: 'Transactions',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue