Skip to content

Commit f920d11

Browse files
committed
commit changes SitePicker
1 parent dbaae69 commit f920d11

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@types/react-dom": "17.0.17",
8181
"@types/react-addons-shallow-compare": "0.14.17",
8282
"@types/react-addons-test-utils": "0.14.15",
83-
"@types/react-addons-update": "0.14.14",
83+
"@types/react-addons-update": "0.14.21",
8484
"@types/react-mentions": "^4.1.3",
8585
"@types/sinon": "2.3.4",
8686
"@types/webpack-env": "~1.15.2",

src/controls/sitePicker/ISitePicker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { IDropdownStyles } from 'office-ui-fabric-react';
2+
13
import { BaseComponentContext } from '@microsoft/sp-component-base';
24

35
import { ISite } from '../../services/SPSitesService';
@@ -96,4 +98,6 @@ export interface ISitePickerProps {
9698
* If mode is set to associatedsites and no hubsiteId is provided, the current site's hub ID will be used.
9799
*/
98100
hubsiteId?: string;
101+
styles?: IDropdownStyles ;
99102
}
103+
export { ISite };

src/controls/sitePicker/SitePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
309309
onChange={onSelectionChange}
310310
notifyOnReselect={true}
311311
className={className}
312-
styles={styles}
312+
styles={props.styles}
313313
/>
314314
</>
315315
);

0 commit comments

Comments
 (0)