File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/controls/filePicker/controls/DocumentLibraryBrowser Expand file tree Collapse file tree 1 file changed +4
-7
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 >
57
+ { isLoading && < Spinner label = 'Caricamento...' /> }
60
58
< List
61
59
className = { styles . filePickerFolderCardGrid }
62
- items = { libraries }
60
+ items = { lists }
63
61
getItemCountForPage = { this . _getItemCountForPage }
64
62
getPageHeight = { this . _getPageHeight }
65
63
renderedWindowsAhead = { 4 }
66
64
onRenderCell = { this . _onRenderLibraryTile }
67
65
/>
68
- </ FocusZone >
69
66
</ div >
70
67
) ;
71
68
}
You can’t perform that action at this time.
0 commit comments