Explorar el Código

BugFix: apply .lsx class

Yuki Takei hace 7 años
padre
commit
5372398457
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      packages/growi-plugin-lsx/src/resource/js/components/Lsx.jsx

+ 5 - 1
packages/growi-plugin-lsx/src/resource/js/components/Lsx.jsx

@@ -180,7 +180,7 @@ export class Lsx extends React.Component {
     return this.addSlashOfEnd(decodeURIComponent(url.resolve(path, '../')));
     return this.addSlashOfEnd(decodeURIComponent(url.resolve(path, '../')));
   }
   }
 
 
-  render() {
+  renderContents() {
     const lsxContext = this.props.lsxContext;
     const lsxContext = this.props.lsxContext;
 
 
     if (this.state.isLoading) {
     if (this.state.isLoading) {
@@ -204,6 +204,10 @@ export class Lsx extends React.Component {
       return <ListView nodeTree={this.state.nodeTree} lsxContext={this.props.lsxContext} />
       return <ListView nodeTree={this.state.nodeTree} lsxContext={this.props.lsxContext} />
     }
     }
   }
   }
+
+  render() {
+    return <div className="lsx">{this.renderContents()}</div>
+  }
 }
 }
 
 
 Lsx.propTypes = {
 Lsx.propTypes = {