diff --git a/samples/react-tenant-properties/src/webparts/tenantProperties/components/ITenantPropertyPanelProps.ts b/samples/react-tenant-properties/src/webparts/tenantProperties/components/ITenantPropertyPanelProps.ts index f5c13e23f..7e7c37e63 100644 --- a/samples/react-tenant-properties/src/webparts/tenantProperties/components/ITenantPropertyPanelProps.ts +++ b/samples/react-tenant-properties/src/webparts/tenantProperties/components/ITenantPropertyPanelProps.ts @@ -1,5 +1,6 @@ import {IListViewItems } from "./IListViewItems"; import { WebPartContext } from '@microsoft/sp-webpart-base'; +import { SyntheticEvent } from "react"; export enum panelMode { "New", "edit", @@ -10,6 +11,6 @@ export interface ITenantPropertyPanelProps { mode:panelMode; showPanel: boolean; TenantProperty: IListViewItems ; - onDismiss(refresh?:boolean) : void; + onDismiss(ev?: SyntheticEvent, refresh?: boolean) : void; context: WebPartContext; } diff --git a/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantProperties.tsx b/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantProperties.tsx index f74110329..548b412c6 100644 --- a/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantProperties.tsx +++ b/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantProperties.tsx @@ -19,6 +19,7 @@ import { MessageBar, MessageBarType } from 'office-ui-fabric-react/lib/MessageBa import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner'; import { WebPartTitle } from "@pnp/spfx-controls-react/lib/WebPartTitle"; import * as strings from 'TenantPropertiesWebPartStrings'; +import { SyntheticEvent } from 'react'; // ListView Columns const viewFields: IViewField[] = [ @@ -97,7 +98,7 @@ export default class TenantProperties extends React.Component, refresh?: boolean) { this.setState({ showPanel: false }); diff --git a/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantPropertyPanel.tsx b/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantPropertyPanel.tsx index 909bf35b9..83fbaa9ed 100644 --- a/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantPropertyPanel.tsx +++ b/samples/react-tenant-properties/src/webparts/tenantProperties/components/TenantPropertyPanel.tsx @@ -58,7 +58,9 @@ export default class TenantPropertyPanel extends React.Component