From 7b53ad066181c3e4bde77e8892b763362ebd09f9 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 6 Jan 2025 11:51:29 -0500 Subject: [PATCH] improved feels PropertyTable (#804) --- ui100/src/PropertyTable.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ui100/src/PropertyTable.tsx b/ui100/src/PropertyTable.tsx index fb466aec..d7735932 100644 --- a/ui100/src/PropertyTable.tsx +++ b/ui100/src/PropertyTable.tsx @@ -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 ( - - - Property - Value - - {data.map((row) => ( - {camelToWords(row.property)} + {camelToWords(row.property)} {value(row)} ))}