Added status labels to table.
This commit is contained in:
1 parent
ecd3b6f8db
commit
b254c9058e
1 file changed
+6
-6
@@ -1,4 +1,3 @@
|
|||||||
import * as React from 'react';
|
|
||||||
import { styled } from '@mui/material/styles';
|
import { styled } from '@mui/material/styles';
|
||||||
import Table from '@mui/material/Table';
|
import Table from '@mui/material/Table';
|
||||||
import TableBody from '@mui/material/TableBody';
|
import TableBody from '@mui/material/TableBody';
|
||||||
@@ -7,6 +6,7 @@ import TableContainer from '@mui/material/TableContainer';
|
|||||||
import TableHead from '@mui/material/TableHead';
|
import TableHead from '@mui/material/TableHead';
|
||||||
import TableRow from '@mui/material/TableRow';
|
import TableRow from '@mui/material/TableRow';
|
||||||
import Paper from '@mui/material/Paper';
|
import Paper from '@mui/material/Paper';
|
||||||
|
import { ColoredLabel, StatusLabel } from "../../Components/Label/";
|
||||||
|
|
||||||
|
|
||||||
const StyledTableCell = styled(TableCell)(({ theme }) => ({
|
const StyledTableCell = styled(TableCell)(({ theme }) => ({
|
||||||
@@ -36,11 +36,11 @@ function createData(name, calories, fat, carbs, protein) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const rows = [
|
const rows = [
|
||||||
createData('Frozen yoghurt', 159, 6.0, 24, 4.0),
|
createData(<StatusLabel status="Down" />, '2024-03-14 21:41:09', 'HTTP 350 - NOK'),
|
||||||
createData('Ice cream sandwich', 237, 9.0, 37, 4.3),
|
createData(<StatusLabel status="Down" />, '2024-03-14 21:41:09', 'timeout of 48000ms exceeded'),
|
||||||
createData('Eclair', 262, 16.0, 24, 6.0),
|
createData(<StatusLabel status="Down" />, '2024-03-14 21:41:09', 'timeout of 48000ms exceeded'),
|
||||||
createData('Cupcake', 305, 3.7, 67, 4.3),
|
createData(<StatusLabel status="Cannot resolve" />, '2024-03-14 21:41:09', 'HTTP 350 - NOK'),
|
||||||
createData('Gingerbread', 356, 16.0, 49, 3.9),
|
createData(<StatusLabel status="Down" />, '2024-03-14 21:41:09', 'HTTP 350 - NOK'),
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function CustomizedTables() {
|
export default function CustomizedTables() {
|
||||||
|
|||||||
Reference in new issue
Block a user