File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
src/controls/filePicker/controls/DocumentLibraryBrowser Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -49,23 +49,20 @@ export class DocumentLibraryBrowser extends React.Component<IDocumentLibraryBrow
49
49
}
50
50
51
51
public render ( ) : React . ReactElement < IDocumentLibraryBrowserProps > {
52
- if ( this . state . isLoading ) {
53
- return ( < Spinner label = { strings . Loading } /> ) ;
54
- }
55
- const libraries : ILibrary [ ] = this . state . lists ;
52
+
53
+ const { lists, isLoading } = this . state ;
56
54
57
55
return (
58
56
< div className = { styles . documentLibraryBrowserContainer } >
59
- < FocusZone >
60
- < List
61
- className = { styles . filePickerFolderCardGrid }
62
- items = { libraries }
63
- getItemCountForPage = { this . _getItemCountForPage }
64
- getPageHeight = { this . _getPageHeight }
65
- renderedWindowsAhead = { 4 }
66
- onRenderCell = { this . _onRenderLibraryTile }
67
- />
68
- </ FocusZone >
57
+ { isLoading && < Spinner label = { strings . Loading } /> }
58
+ < List
59
+ className = { styles . filePickerFolderCardGrid }
60
+ items = { lists }
61
+ getItemCountForPage = { this . _getItemCountForPage }
62
+ getPageHeight = { this . _getPageHeight }
63
+ renderedWindowsAhead = { 4 }
64
+ onRenderCell = { this . _onRenderLibraryTile }
65
+ />
69
66
</ div >
70
67
) ;
71
68
}
You can’t perform that action at this time.
0 commit comments