mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
refactor(server): change invitation request link to workspace members tab (#11191)
close CLOUD-184
This commit is contained in:
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user