mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fixed type errors
This commit is contained in:
parent
4d3500141a
commit
4176b6588e
@ -124,7 +124,5 @@ const columns: ColumnDef<ServerTeam>[] = [
|
||||
];
|
||||
|
||||
export function TeamTable(props: { teams: ServerTeam[] }) {
|
||||
const teams = useMemo(() => props.teams.sort((a, b) => b.createdAt - a.createdAt), [props.teams]);
|
||||
|
||||
return <DataTable data={props.teams} columns={columns} toolbarRender={toolbarRender} />;
|
||||
}
|
||||
@ -187,7 +187,7 @@ export function extendUsers(users: ServerUser[]): ExtendedServerUser[] {
|
||||
...user,
|
||||
authType: (user.authWithEmail ? "email" : user.oauthProviders[0]) || "",
|
||||
emailVerified: user.primaryEmailVerified ? "verified" : "unverified",
|
||||
})).sort((a, b) => b.signedUpAt - a.signedUpAt);
|
||||
} satisfies ExtendedServerUser)).sort((a, b) => a.signedUpAt > b.signedUpAt ? -1 : 1);
|
||||
}
|
||||
|
||||
export function UserTable(props: { users: ServerUser[] }) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user