Skip to content

Commit

Permalink
Merge pull request #478 from Shelf-nu/471-custom-fields-table-has-wro…
Browse files Browse the repository at this point in the history
…ng-html-structure

wrapped custom field name column in a link to custom field edit page
  • Loading branch information
DonKoko authored Oct 23, 2023
2 parents 276e55c + 35f5aef commit a5c9c5f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/routes/_layout+/settings.custom-fields.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,19 @@ function TeamMemberRow({ item }: { item: CustomField }) {
return (
<>
<Td className="w-full">
<div className="flex items-center justify-between gap-2">
<div className="flex-1">
<Link
to={`${item.id}/edit`}
className="block text-text-sm font-medium text-gray-900"
>
{item.name}
</Link>
<span className="text-gray-600">{FIELD_TYPE_NAME[item.type]}</span>
<Link
to={`${item.id}/edit`}
className="block text-text-sm font-medium text-gray-900"
>
<div className="flex items-center justify-between gap-2">
<div className="flex-1">
<span className="block">{item.name}</span>
<span className="text-gray-600">
{FIELD_TYPE_NAME[item.type]}
</span>
</div>
</div>
</div>
</Link>
</Td>
<Td>
<span className="text-text-sm font-medium capitalize text-gray-600">
Expand Down

0 comments on commit a5c9c5f

Please sign in to comment.