Skip to content

Commit 2dce2af

Browse files
refactor(content-picker): restore file header and JSDoc comments
1 parent bdfb65d commit 2dce2af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/elements/content-picker/Content.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @flow
3+
* @file File picker header and list component
4+
* @author Box
5+
*/
6+
17
import * as React from 'react';
28
import EmptyView from '../common/empty-view';
39
import ProgressBar from '../common/progress-bar';
@@ -28,6 +34,10 @@ export interface ContentProps {
2834

2935
/**
3036
* Determines if we should show the empty state
37+
*
38+
* @param {string} view the current view
39+
* @param {Object} currentCollection the current collection
40+
* @return {boolean} empty or not
3141
*/
3242
const isEmpty = (view: View, currentCollection: Collection): boolean => {
3343
const { items = [] } = currentCollection;

0 commit comments

Comments
 (0)