mirror of
https://github.com/openziti/zrok.git
synced 2025-01-25 07:19:11 +01:00
improved feels PropertyTable (#804)
This commit is contained in:
parent
b419300ea2
commit
7b53ad0661
@ -1,6 +1,6 @@
|
||||
import React, {useEffect, useState} from "react";
|
||||
import {camelToWords, objectToRows} from "./model/util.ts";
|
||||
import {Paper, Table, TableBody, TableCell, TableHead, TableRow} from "@mui/material";
|
||||
import {Paper, Table, TableBody, TableCell, TableRow} from "@mui/material";
|
||||
|
||||
type PropertyTableProps = {
|
||||
object: any;
|
||||
@ -26,16 +26,10 @@ const PropertyTable = ({ object, custom }: PropertyTableProps) => {
|
||||
return (
|
||||
<Paper>
|
||||
<Table>
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell>Property</TableCell>
|
||||
<TableCell>Value</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{data.map((row) => (
|
||||
<TableRow key={row.id}>
|
||||
<TableCell sx={{ width: 100 }}>{camelToWords(row.property)}</TableCell>
|
||||
<TableCell sx={{ width: 100 }}><strong>{camelToWords(row.property)}</strong></TableCell>
|
||||
<TableCell sx={{ width: 1000 }}>{value(row)}</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
|
Loading…
Reference in New Issue
Block a user