Skip to content

Commit f64a53b

Browse files
committed
DynamicForm: BaseComponentContext instead of WebPartContext
1 parent 98b8e57 commit f64a53b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/documentation/docs/controls/DynamicForm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The `DynamicForm` can be configured with the following properties:
3232

3333
| Property | Type | Required | Description |
3434
| ---- | ---- | ---- | ---- |
35-
| context | WebPartContext or ExtensionContext | yes | The context object of the SPFx loaded webpart or customizer. |
35+
| context | BaseComponentContext | yes | The context object of the SPFx loaded webpart or customizer. |
3636
| listId | string | yes | Guid of the list.|
3737
| listItemId | number | no | list item ID. |
3838
| contentTypeId | string | no | content type ID |

src/controls/dynamicForm/IDynamicFormProps.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { ExtensionContext } from '@microsoft/sp-extension-base';
2-
import { WebPartContext } from '@microsoft/sp-webpart-base';
1+
import { BaseComponentContext } from '@microsoft/sp-component-base';
32

43
export interface IDynamicFormProps {
54
/**
65
* Current context
76
*/
8-
context: WebPartContext | ExtensionContext;
7+
context: BaseComponentContext;
98
/**
109
* Specifies if the form is disabled
1110
*/

0 commit comments

Comments
 (0)