mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
added user count to the user dashboard
This commit is contained in:
parent
0ff38e23bb
commit
cd7e87ee22
@ -1,23 +1,22 @@
|
||||
"use client";
|
||||
|
||||
import { UserTable } from "@/components/data-table/user-table";
|
||||
import { FormDialog } from "@/components/form-dialog";
|
||||
import { InputField, SwitchField } from "@/components/form-fields";
|
||||
import { StyledLink } from "@/components/link";
|
||||
import { UserDialog } from "@/components/user-dialog";
|
||||
import { Alert, Button } from "@stackframe/stack-ui";
|
||||
import * as yup from "yup";
|
||||
import { PageLayout } from "../page-layout";
|
||||
import { useAdminApp } from "../use-admin-app";
|
||||
import { UserDialog } from "@/components/user-dialog";
|
||||
|
||||
|
||||
export default function PageClient() {
|
||||
const stackAdminApp = useAdminApp();
|
||||
const project = stackAdminApp.useProject();
|
||||
const users = stackAdminApp.useUsers();
|
||||
|
||||
return (
|
||||
<PageLayout
|
||||
title="Users"
|
||||
description={`User count: ${project.userCount}`}
|
||||
actions={<UserDialog
|
||||
type="create"
|
||||
trigger={<Button>Create User</Button>}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user