mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
83ed215f4a
use `yarn af server dev:mail` to preview all mail template fix CLOUD-93
39 lines
860 B
TypeScript
39 lines
860 B
TypeScript
import { TEST_WORKSPACE } from '../common';
|
|
import {
|
|
Button,
|
|
Content,
|
|
P,
|
|
Template,
|
|
Title,
|
|
Workspace,
|
|
type WorkspaceProps,
|
|
} from '../components';
|
|
|
|
export type TeamBecomeAdminProps = {
|
|
workspace: WorkspaceProps;
|
|
url: string;
|
|
};
|
|
|
|
export default function TeamBecomeAdmin(props: TeamBecomeAdminProps) {
|
|
const { workspace, url } = props;
|
|
return (
|
|
<Template>
|
|
<Title>You've been promoted to admin.</Title>
|
|
<Content>
|
|
<P>
|
|
You have been promoted to admin of <Workspace {...workspace} />. As an
|
|
admin, you can help the workspace owner manage members in this
|
|
workspace.
|
|
</P>
|
|
<Button href={url}>Go to Workspace</Button>
|
|
</Content>
|
|
</Template>
|
|
);
|
|
}
|
|
|
|
TeamBecomeAdmin.PreviewProps = {
|
|
workspace: TEST_WORKSPACE,
|
|
role: 'admin',
|
|
url: 'https://app.affine.pro',
|
|
};
|