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:
Cesar 2020-11-30 14:06:44 +00:00 committed by Josh Harvey
parent c21cdb13e1
commit bd2d657e2c
5 changed files with 15 additions and 11 deletions

View file

@ -1,7 +1,6 @@
import { makeStyles } from '@material-ui/core'
import classnames from 'classnames'
import React from 'react'
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 {

View file

@ -51,9 +51,8 @@ const styles = {
statusHeader: {
marginLeft: 2
},
/* // temporary class, until alerts are enabled. Delete this table class and uncomment the other one
table: {
height: 463,
/* table: {
maxHeight: 440,
'&::-webkit-scrollbar': {
width: 7
},
@ -62,8 +61,10 @@ const styles = {
borderRadius: 5
}
}, */
// temporary, when notifications are enabled delete this one and decomment above
table: {
maxHeight: 440,
maxHeight: 465,
minHeight: 465,
'&::-webkit-scrollbar': {
width: 7
},

View file

@ -1,6 +1,6 @@
import { zircon } from 'src/styling/variables'
export default {
const styles = {
expandButton: {
outline: 'none',
border: 'none',
@ -41,3 +41,5 @@ export default {
flexDirection: 'column'
})
}
export default styles

View file

@ -3,7 +3,7 @@ import { offColor } from 'src/styling/variables'
const { p } = typographyStyles
export default {
const styles = {
wrapper: {
display: 'flex',
flexDirection: 'column',
@ -82,3 +82,5 @@ export default {
width: 215
}
}
export default styles

View file

@ -51,18 +51,18 @@ const useStyles = makeStyles({
})
const tree = [
{
/* {
key: 'dashboard',
label: 'Dashboard',
route: '/dashboard',
component: Dashboard
},
{
}, */
/* {
key: 'machines',
label: 'Machines',
route: '/machines',
component: Machines
},
}, */
{
key: 'transactions',
label: 'Transactions',