mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
* add settings page with members list * add invite to schema and basic create form * add invite table * add basic invite link copy button * add auth invite accept case * add non auth logic * add google oauth provider
27 lines
No EOL
627 B
TypeScript
27 lines
No EOL
627 B
TypeScript
'use client'
|
|
|
|
import { Column, ColumnDef } from "@tanstack/react-table"
|
|
|
|
export type MemberColumnInfo = {
|
|
name: string;
|
|
role: string;
|
|
}
|
|
|
|
export const memberTableColumns = (): ColumnDef<MemberColumnInfo>[] => {
|
|
return [
|
|
{
|
|
accessorKey: "name",
|
|
cell: ({ row }) => {
|
|
const member = row.original;
|
|
return <div>{member.name}</div>;
|
|
}
|
|
},
|
|
{
|
|
accessorKey: "role",
|
|
cell: ({ row }) => {
|
|
const member = row.original;
|
|
return <div>{member.role}</div>;
|
|
}
|
|
}
|
|
]
|
|
} |