Skip to content

Commit c257983

Browse files
update type to kind
1 parent f3ccf7c commit c257983

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/communication-services/tutorials/call-readiness/call-readiness-tutorial-part-2-requesting-device-access.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,25 @@ import { Modal } from '@fluentui/react';
4343

4444
/** Modal dialog that prompt the user to accept the Browser's device permission request. */
4545
export const AcceptDevicePermissionRequestPrompt = (props: { isOpen: boolean }): JSX.Element => (
46-
<PermissionsModal isOpen={props.isOpen} type="request" />
46+
<PermissionsModal isOpen={props.isOpen} kind="request" />
4747
);
4848

4949
/** Modal dialog that informs the user we are checking for device access. */
5050
export const CheckingDeviceAccessPrompt = (props: { isOpen: boolean }): JSX.Element => (
51-
<PermissionsModal isOpen={props.isOpen} type="check" />
51+
<PermissionsModal isOpen={props.isOpen} kind="check" />
5252
)
5353

5454
/** Modal dialog that informs the user they denied permission to the camera or microphone with corrective steps. */
5555
export const PermissionsDeniedPrompt = (props: { isOpen: boolean }): JSX.Element => (
56-
<PermissionsModal isOpen={props.isOpen} type="denied" />
56+
<PermissionsModal isOpen={props.isOpen} kind="denied" />
5757
);
5858

5959
/** Base component utilitzed by the above prompts for better code separation. */
60-
const PermissionsModal = (props: { isOpen: boolean, type: "denied" | "request" | "check" }): JSX.Element => (
60+
const PermissionsModal = (props: { isOpen: boolean, kind: "denied" | "request" | "check" }): JSX.Element => (
6161
<Modal isOpen={props.isOpen}>
6262
<CameraAndMicrophoneSitePermissions
6363
appName={'this site'}
64-
type={props.type}
64+
kind={props.kind}
6565
onTroubleshootingClick={() => alert('This callback should be used to take the user to further troubleshooting')}
6666
/>
6767
</Modal>

0 commit comments

Comments
 (0)