Client: Improved the lists a bit

This commit is contained in:
Donkie
2023-05-16 21:50:09 +02:00
parent 9a063fcf5d
commit 166c6fa0d1
2 changed files with 75 additions and 38 deletions

View File

@@ -56,32 +56,42 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
<Table.Column
dataIndex="weight"
title="Weight"
render={(value) => (
<NumberField
value={value}
options={{
unitDisplay: "short",
unit: "gram",
style: "unit",
maximumFractionDigits: 1,
}}
/>
)}
render={(value) => {
if (value === null || value === undefined) {
return <></>;
}
return (
<NumberField
value={value}
options={{
unitDisplay: "short",
unit: "gram",
style: "unit",
maximumFractionDigits: 1,
}}
/>
);
}}
/>
<Table.Column
dataIndex="spool_weight"
title="Spool Weight"
render={(value) => (
<NumberField
value={value}
options={{
unitDisplay: "short",
unit: "gram",
style: "unit",
maximumFractionDigits: 1,
}}
/>
)}
render={(value) => {
if (value === null || value === undefined) {
return <></>;
}
return (
<NumberField
value={value}
options={{
unitDisplay: "short",
unit: "gram",
style: "unit",
maximumFractionDigits: 1,
}}
/>
);
}}
/>
<Table.Column dataIndex="article_number" title="Article Number" />
<Table.Column