mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 00:06:09 +08:00
feat(server): new email template (#9528)
use `yarn af server dev:mail` to preview all mail template fix CLOUD-93
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { TEST_USER, TEST_WORKSPACE } from '../common';
|
||||
import {
|
||||
Content,
|
||||
P,
|
||||
Template,
|
||||
Title,
|
||||
User,
|
||||
type UserProps,
|
||||
Workspace,
|
||||
type WorkspaceProps,
|
||||
} from '../components';
|
||||
|
||||
export type InvitationAcceptedProps = {
|
||||
user: UserProps;
|
||||
workspace: WorkspaceProps;
|
||||
};
|
||||
|
||||
export default function InvitationAccepted(props: InvitationAcceptedProps) {
|
||||
const { user, workspace } = props;
|
||||
return (
|
||||
<Template>
|
||||
<Title>{user.email} accepted your invitation</Title>
|
||||
<Content>
|
||||
<P>
|
||||
<User {...user} /> has joined <Workspace {...workspace} />
|
||||
</P>
|
||||
</Content>
|
||||
</Template>
|
||||
);
|
||||
}
|
||||
|
||||
InvitationAccepted.PreviewProps = {
|
||||
user: TEST_USER,
|
||||
workspace: TEST_WORKSPACE,
|
||||
};
|
||||
Reference in New Issue
Block a user