refactor(server): change invitation request link to workspace members tab (#11191)

close CLOUD-184
This commit is contained in:
fengmk2
2025-03-28 05:27:19 +00:00
parent bfa7e9a007
commit 69f393fe2f
5 changed files with 89 additions and 13 deletions
@@ -1,5 +1,6 @@
import { TEST_USER, TEST_WORKSPACE } from '../common';
import {
Button,
Content,
P,
Template,
@@ -13,10 +14,11 @@ import {
export type InvitationAcceptedProps = {
user: UserProps;
workspace: WorkspaceProps;
url: string;
};
export default function InvitationAccepted(props: InvitationAcceptedProps) {
const { user, workspace } = props;
const { user, workspace, url } = props;
return (
<Template>
<Title>{user.email} accepted your invitation</Title>
@@ -24,6 +26,7 @@ export default function InvitationAccepted(props: InvitationAcceptedProps) {
<P>
<User {...user} /> has joined <Workspace {...workspace} />
</P>
<Button href={url}>Open Workspace Members</Button>
</Content>
</Template>
);
@@ -32,4 +35,5 @@ export default function InvitationAccepted(props: InvitationAcceptedProps) {
InvitationAccepted.PreviewProps = {
user: TEST_USER,
workspace: TEST_WORKSPACE,
url: 'https://app.affine.pro',
};