From c963b2664050ef55c90631a534132954fff8a281 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:23:30 +0200 Subject: [PATCH] Bring back role --- app/(dashboard)/users/UsersTable.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/(dashboard)/users/UsersTable.tsx b/app/(dashboard)/users/UsersTable.tsx index e00de988..aa0df864 100644 --- a/app/(dashboard)/users/UsersTable.tsx +++ b/app/(dashboard)/users/UsersTable.tsx @@ -8,7 +8,7 @@ 'use client' import { createColumnHelper } from '@tanstack/table-core' import { useMemo } from 'react' -import { Role } from '@/modules/firebase/role' +import { Role, stringifyRole } from '@/modules/firebase/role' import { useUser } from '@/modules/firebase/UserProvider' import { createSharedUserColumns } from '@/modules/user/table' import { DataTable } from '@/packages/design-system/src/components/DataTable' @@ -24,6 +24,10 @@ const columns = [ userColumns.id, userColumns.displayName, userColumns.email, + columnHelper.accessor('role', { + header: 'Role', + cell: (props) => stringifyRole(props.getValue()), + }), columnHelper.accessor('organization.name', { id: columnIds.organization, header: 'Organization',