Feat: make dashboard and machine profile page
This commit is contained in:
parent
d17ca43abb
commit
19cd086436
54 changed files with 11680 additions and 2611 deletions
36
new-lamassu-admin/src/pages/Dashboard/Alerts/AlertsTable.js
Normal file
36
new-lamassu-admin/src/pages/Dashboard/Alerts/AlertsTable.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import { withStyles } from '@material-ui/core'
|
||||
import List from '@material-ui/core/List'
|
||||
import ListItem from '@material-ui/core/ListItem'
|
||||
import ListItemText from '@material-ui/core/ListItemText'
|
||||
import React from 'react'
|
||||
|
||||
import styles from './Alerts.styles'
|
||||
// const useStyles = makeStyles(styles)
|
||||
|
||||
const StyledListItem = withStyles(() => ({
|
||||
root: {
|
||||
...styles.root
|
||||
}
|
||||
}))(ListItem)
|
||||
|
||||
const AlertsTable = ({ numToRender, alerts }) => {
|
||||
// const classes = useStyles()
|
||||
|
||||
return (
|
||||
<>
|
||||
<List dense>
|
||||
{alerts.map((alert, idx) => {
|
||||
if (idx < numToRender) {
|
||||
return (
|
||||
<StyledListItem key={idx}>
|
||||
<ListItemText primary={alert.text} />
|
||||
</StyledListItem>
|
||||
)
|
||||
} else return null
|
||||
})}
|
||||
</List>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default AlertsTable
|
||||
Loading…
Add table
Add a link
Reference in a new issue