Skip to content

Commit c0cc624

Browse files
authored
Added checkbox input for eligibility. (#2849)
1 parent d3fa242 commit c0cc624

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/teams-test-app/src/components/privateApis/CopilotAPIs.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { copilot, sidePanelInterfaces, UUID } from '@microsoft/teams-js';
22
import React, { ReactElement } from 'react';
33

44
import { generateRegistrationMsg } from '../../App';
5-
import { ApiWithoutInput, ApiWithTextInput } from '../utils';
5+
import { ApiWithCheckboxInput, ApiWithoutInput, ApiWithTextInput } from '../utils';
66
import { ModuleWrapper } from '../utils/ModuleWrapper';
77

88
const CopilotAPIs = (): ReactElement => {
@@ -15,11 +15,12 @@ const CopilotAPIs = (): ReactElement => {
1515
});
1616

1717
const GetEligibilityInfo = (): ReactElement =>
18-
ApiWithoutInput({
18+
ApiWithCheckboxInput({
1919
name: 'getEligibilityInfo',
2020
title: 'Get the app Eligibility Information',
21-
onClick: async () => {
22-
const result = await copilot.eligibility.getEligibilityInfo();
21+
label: 'forceRefresh',
22+
onClick: async (input) => {
23+
const result = await copilot.eligibility.getEligibilityInfo(input);
2324
return JSON.stringify(result);
2425
},
2526
});

0 commit comments

Comments
 (0)