Skip to content

Commit 2ea8748

Browse files
committed
Convert number to link
1 parent 0528f10 commit 2ea8748

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

src/pages/PlanPage/subRoutes/CurrentOrgPlan/AccountOrgs/AccountOrgs.tsx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ const columns = [
8686
<ActivatedUsersTooltip />
8787
</div>
8888
),
89-
cell: ({ renderValue }) => (
90-
<p className="text-right text-ds-blue-default">{renderValue()}</p>
91-
),
89+
cell: ({ renderValue }) => <p className="text-right">{renderValue()}</p>,
9290
}),
9391
]
9492

@@ -229,8 +227,6 @@ export default function AccountOrgs({ account }: AccountOrgsArgs) {
229227
key={row.id}
230228
className="h-14 hover:cursor-pointer hover:bg-ds-gray-primary"
231229
onClick={() => linkToMembersTab(row.original.name)}
232-
tabIndex={0}
233-
role="button"
234230
>
235231
{row.getVisibleCells().map((cell) => (
236232
<td key={cell.id}>
@@ -245,9 +241,24 @@ export default function AccountOrgs({ account }: AccountOrgsArgs) {
245241
<tr key={row.id} className="h-14">
246242
{row.getVisibleCells().map((cell) => (
247243
<td key={cell.id}>
248-
{flexRender(
249-
cell.column.columnDef.cell,
250-
cell.getContext()
244+
{cell.id === 'activatedUserCount' ? (
245+
<div className="flex justify-items-end">
246+
{/* @ts-ignore-error */}
247+
<A
248+
to={{
249+
pageName: 'membersTab',
250+
options: {
251+
owner: cell.getValue(),
252+
provider,
253+
},
254+
}}
255+
/>
256+
</div>
257+
) : (
258+
flexRender(
259+
cell.column.columnDef.cell,
260+
cell.getContext()
261+
)
251262
)}
252263
</td>
253264
))}

0 commit comments

Comments
 (0)