mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/app/(main)/teams/TeamsDataTable.tsx # src/app/(main)/teams/TeamsJoinButton.tsx # src/app/(main)/teams/[teamId]/TeamSettings.tsx
This commit is contained in:
commit
8115709a8b
10 changed files with 43 additions and 32 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import Link from 'next/link';
|
||||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { TeamsTable } from './TeamsTable';
|
||||
import { useLoginQuery, useNavigation, useUserTeamsQuery } from '@/components/hooks';
|
||||
import Link from 'next/link';
|
||||
import { TeamsTable } from './TeamsTable';
|
||||
|
||||
export function TeamsDataTable() {
|
||||
const { user } = useLoginQuery();
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ export function TeamsTable({
|
|||
<DataColumn id="owner" label={formatMessage(labels.owner)}>
|
||||
{(row: any) => row?.members?.find(({ role }) => role === ROLES.teamOwner)?.user?.username}
|
||||
</DataColumn>
|
||||
<DataColumn id="websites" label={formatMessage(labels.websites)} align="end">
|
||||
{(row: any) => row?._count?.websites}
|
||||
</DataColumn>
|
||||
<DataColumn id="members" label={formatMessage(labels.members)} align="end">
|
||||
{(row: any) => row?._count?.members}
|
||||
</DataColumn>
|
||||
<DataColumn id="websites" label={formatMessage(labels.websites)} align="end">
|
||||
{(row: any) => row?._count?.websites}
|
||||
</DataColumn>
|
||||
</DataTable>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue