feat: slightly improve card layout + edit profile page

This commit is contained in:
Sam 2023-01-03 00:07:10 +01:00
parent e5723360a7
commit 68939f5e10
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 46 additions and 40 deletions

View file

@ -260,15 +260,11 @@ function FieldCard({
}) {
return (
<Card title={field.name} draggable={draggable}>
{labelStatusOrder.map((status, i) => (
<LabelsLine
key={i}
status={status}
texts={field.labels
.filter((x) => x.status === status)
.map((x) => x.display())}
/>
))}
{labelStatusOrder.map((status, i) =>
field.labels
.filter((x) => x.status === status)
.map((x) => <LabelLine key={i} label={x} />)
)}
</Card>
);
}