## What does this PR do? <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> - Add the prop customDividerClassName to customize the CSS Divider if needed - Add a divider on all modals with type="creation" prop, following the [figma](https://www.figma.com/file/9MOufQNLtdkpnDucmNX10R/1.-Cal-DS?type=design&node-id=29898%3A100590&t=62LvZCZAEZm5zDdw-1) design - Some type="creation" modals seem not to be this type, we pushed all changes with screenshots, if you want us to revert the changes on some modals we will revert  - Inline Embed:  - Enable Two-Factor Authentication:  -Enable Two-Factor Authentication (step 2):  -Enable Two-Factor Authentication (step 3):  - Disable Two-Factor Authentication:  - Delete Account:  - Update Timezone:  - Duplicate Event Type:  - Add a New Form:  - Change Team Member Role:  - Impersonate:  - Bulk Update Event Types:  - Connecting with MS Teams:  - Set a Default App Link:  - OIDC configuration:  - SAML Configuration:  - How to use booking questions as variables?   - Invite Link Settings:  - Add Action:  - Edit Keys:  - Create an Api Key:  - API key created successfully:  - Invite Team Member:  - Add a Question:  - Add a new event type: 
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import type { DialogProps } from "@calcom/ui";
|
|
import { Button } from "@calcom/ui";
|
|
import { Dialog, DialogClose, DialogContent, DialogFooter } from "@calcom/ui";
|
|
|
|
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
|
|
export function AccountDialog(props: DialogProps) {
|
|
const mutation = useAddAppMutation("office365_video");
|
|
return (
|
|
<Dialog name="Account check" open={props.open} onOpenChange={props.onOpenChange}>
|
|
<DialogContent
|
|
type="creation"
|
|
title="Connecting with MS Teams requires a work/school Microsoft account."
|
|
description="If you continue with a personal account you will receive an error">
|
|
<DialogFooter showDivider className="mt-6">
|
|
<>
|
|
<DialogClose
|
|
type="button"
|
|
color="secondary"
|
|
tabIndex={-1}
|
|
onClick={() => {
|
|
props.onOpenChange?.(false);
|
|
}}>
|
|
Cancel
|
|
</DialogClose>
|
|
|
|
<Button type="button" onClick={() => mutation.mutate("")}>
|
|
Continue
|
|
</Button>
|
|
</>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
}
|
|
|
|
export default AccountDialog;
|