mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Merge branch 'main' of github.com:stackframe-projects/stack
This commit is contained in:
commit
5c6cc90854
@ -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>
|
||||
|
||||
@ -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()}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user