From ad137a6c4006ebbe70f7c6cd93393ebd17688c0c Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Sun, 14 Apr 2024 15:16:47 +0200 Subject: [PATCH 1/2] Add docs note when there's no users --- .../projects/[projectId]/auth/users/page-client.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/stack-server/src/app/(main)/(protected)/projects/[projectId]/auth/users/page-client.tsx b/packages/stack-server/src/app/(main)/(protected)/projects/[projectId]/auth/users/page-client.tsx index dd2181ac4..cbdb5a86d 100644 --- a/packages/stack-server/src/app/(main)/(protected)/projects/[projectId]/auth/users/page-client.tsx +++ b/packages/stack-server/src/app/(main)/(protected)/projects/[projectId]/auth/users/page-client.tsx @@ -1,9 +1,10 @@ "use client"; -import { useState } from "react"; import { Paragraph } from "@/components/paragraph"; import { UsersTable } from "./users-table"; import { useAdminApp } from "../../use-admin-app"; +import { Alert } from "@mui/joy"; +import { SmartLink } from "@/components/smart-link"; export default function UsersDashboardClient() { @@ -16,6 +17,15 @@ export default function UsersDashboardClient() { Users + + {allUsers.length > 0 ? null : ( + + + Congratulations on starting your project! Check the documentation to add your first users. + + + )} + From e842b5702059aece89d6f7748758ea8321c9a846 Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Sun, 14 Apr 2024 15:31:48 +0200 Subject: [PATCH 2/2] Add some periods to some texts --- packages/stack/src/components-page/account-settings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stack/src/components-page/account-settings.tsx b/packages/stack/src/components-page/account-settings.tsx index b8741e5c1..562f313e3 100644 --- a/packages/stack/src/components-page/account-settings.tsx +++ b/packages/stack/src/components-page/account-settings.tsx @@ -90,7 +90,7 @@ function EmailVerificationSection() { return ( { @@ -182,7 +182,7 @@ function SignOutSection() { return ( user?.signOut()}