From 087f3680abd28042045db48c1ae07466005f2636 Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Thu, 30 May 2019 10:57:21 +0800 Subject: [PATCH] modify style --- frontend/src/components/file-chooser/tree-list-item.js | 9 +++++---- frontend/src/components/file-chooser/tree-list-view.js | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/file-chooser/tree-list-item.js b/frontend/src/components/file-chooser/tree-list-item.js index db8cbac63b..c6d9ea4fab 100644 --- a/frontend/src/components/file-chooser/tree-list-item.js +++ b/frontend/src/components/file-chooser/tree-list-item.js @@ -10,6 +10,7 @@ const propTypes = { onNodeCollapse: PropTypes.func.isRequired, onNodeExpanded: PropTypes.func.isRequired, filePath: PropTypes.string, + fileSuffixes: PropTypes.array, }; class TreeViewItem extends React.Component { @@ -88,10 +89,10 @@ class TreeViewItem extends React.Component { return(
- { - node.object.type !== 'file' && - - } + { + node.object.type !== 'file' && + + } {node.object && node.object.name} diff --git a/frontend/src/components/file-chooser/tree-list-view.js b/frontend/src/components/file-chooser/tree-list-view.js index ca559d64f9..8adc994339 100644 --- a/frontend/src/components/file-chooser/tree-list-view.js +++ b/frontend/src/components/file-chooser/tree-list-view.js @@ -10,6 +10,7 @@ const propTypes = { treeData: PropTypes.object.isRequired, onNodeCollapse: PropTypes.func.isRequired, onNodeExpanded: PropTypes.func.isRequired, + fileSuffixes: PropTypes.array, }; class TreeListView extends React.Component {