Skip to content

Commit

Permalink
Bring back role
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jul 24, 2024
1 parent e993084 commit c963b26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/(dashboard)/users/UsersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check warning on line 14 in app/(dashboard)/users/UsersTable.tsx

View check run for this annotation

Codecov / codecov/patch

app/(dashboard)/users/UsersTable.tsx#L10-L14

Added lines #L10 - L14 were not covered by tests
Expand All @@ -24,6 +24,10 @@ const columns = [
userColumns.id,
userColumns.displayName,
userColumns.email,
columnHelper.accessor('role', {
header: 'Role',
cell: (props) => stringifyRole(props.getValue()),

Check warning on line 29 in app/(dashboard)/users/UsersTable.tsx

View check run for this annotation

Codecov / codecov/patch

app/(dashboard)/users/UsersTable.tsx#L29

Added line #L29 was not covered by tests
}),
columnHelper.accessor('organization.name', {
id: columnIds.organization,
header: 'Organization',
Expand Down

0 comments on commit c963b26

Please sign in to comment.