Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 25, 2017
1 parent e81e4c9 commit c8d5530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/tree/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class TreeNode extends Component {
}),
nodeContent = (
<div className={nodeContentClass} onClick={this.onNodeClick.bind(this)} onTouchEnd={this.onNodeTouchEnd.bind(this)}>
{!this.isLeaf() && <span className={togglerClass} onClick={this.toggle.bind(this)}></span>}
<span className={togglerClass} onClick={this.toggle.bind(this)}></span>
{checkbox}
{hasIcon && <span className={iconClass}></span>}
{label}
Expand Down Expand Up @@ -155,7 +155,7 @@ export class TreeNode extends Component {
nodeContent = (
<td className={nodeClass}>
<div className={nodeContentClass} onClick={this.onNodeClick.bind(this)} onTouchEnd={this.onNodeTouchEnd.bind(this)}>
<span className={togglerClass} onClick={this.toggle.bind(this)}></span>
{!this.isLeaf() && <span className={togglerClass} onClick={this.toggle.bind(this)}></span>}
{hasIcon && <span className={iconClass}></span>}
{label}
</div>
Expand Down
7 changes: 0 additions & 7 deletions src/showcase/setup/SetupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ npm install primereact --save


<h3>Import</h3>
<p>UI components are configured as modules, once PrimeReact is downloaded and configured, modules and apis can be imported from 'primereact' shorthand in your application code.</p>
<CodeHighlight className="language-javascript">
{`
import {Accordion,AccordionTab} from 'primereact';
`}
</CodeHighlight>

<p>Importing from primereact will load all other components as well, to only import a specific component pattern would result in a smaller bundle size.</p>
<CodeHighlight className="language-javascript">
Expand Down

0 comments on commit c8d5530

Please sign in to comment.