diff --git a/src/components/FileExplorer.jsx b/src/components/FileExplorer.jsx
index 4d7a860..df0ef33 100644
--- a/src/components/FileExplorer.jsx
+++ b/src/components/FileExplorer.jsx
@@ -59,11 +59,7 @@ export default class FileExplorer extends React.Component {
renderFiles(visibleNodes, onNodeClick) {
const { nodes, depths, focusedNode, expandedNodes } = visibleNodes
if (nodes.length === 0) {
- return (
-
- )
+ return
}
return (
@@ -82,19 +78,33 @@ export default class FileExplorer extends React.Component {
}
render() {
- const { stateText, visibleNodes, freeze, handleKeyDown, handleSearchKeyChange, onNodeClick, toggleShowSettings, onFocusSearchBar } = this.props
+ const {
+ stateText,
+ visibleNodes,
+ freeze,
+ handleKeyDown,
+ handleSearchKeyChange,
+ onNodeClick,
+ toggleShowSettings,
+ onFocusSearchBar,
+ } = this.props
return (
-
- {
- stateText
- ?
- : visibleNodes && (
+
+ {stateText ? (
+
+ ) : (
+ visibleNodes && (
{this.renderFiles(visibleNodes, onNodeClick)}
)
- }
+ )}
)
}
diff --git a/src/content.jsx b/src/content.jsx
index 06b7c41..b86067f 100644
--- a/src/content.jsx
+++ b/src/content.jsx
@@ -1,5 +1,5 @@
-import * as React from 'react'
-import * as ReactDOM from 'react-dom'
+import React from 'react'
+import ReactDOM from 'react-dom'
import Gitako from 'components/Gitako'
import { addMiddleware } from 'driver/connect'
import { withErrorLog } from 'analytics'