Merge branch 'main' of github.com:stackframe-projects/stack

This commit is contained in:
Zai Shi 2024-04-14 15:33:37 +02:00
commit 5c6cc90854
2 changed files with 14 additions and 4 deletions

View File

@ -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
</Paragraph>
{allUsers.length > 0 ? null : (
<Paragraph body>
<Alert color="success">
Congratulations on starting your project! Check the <SmartLink href="https://docs.stack-auth.com">documentation</SmartLink> to add your first users.
</Alert>
</Paragraph>
)}
<Paragraph body>
<UsersTable rows={allUsers} />
</Paragraph>

View File

@ -90,7 +90,7 @@ function EmailVerificationSection() {
return (
<SettingSection
title='Email Verification'
desc='We want to make sure that you own the email address'
desc='We want to make sure that you own the email address.'
buttonDisabled={emailSent}
buttonText={
!user?.primaryEmailVerified ?
@ -125,7 +125,7 @@ function PasswordSection() {
return (
<SettingSection
title='Password'
desc='Change your password'
desc='Change your password here.'
buttonDisabled={!oldPassword || !newPassword}
buttonText='Save'
onButtonClick={async () => {
@ -182,7 +182,7 @@ function SignOutSection() {
return (
<SettingSection
title='Sign out'
desc='Sign out of your account on this device'
desc='Sign out of your account on this device.'
buttonVariant='secondary'
buttonText='Sign Out'
onButtonClick={() => user?.signOut()}