diff --git a/src/components/tree/Tree.js b/src/components/tree/Tree.js index 4b44d8024d..069ddbdaef 100644 --- a/src/components/tree/Tree.js +++ b/src/components/tree/Tree.js @@ -94,7 +94,7 @@ export class TreeNode extends Component { }), nodeContent = (
- {!this.isLeaf() && } + {checkbox} {hasIcon && } {label} @@ -155,7 +155,7 @@ export class TreeNode extends Component { nodeContent = (
- + {!this.isLeaf() && } {hasIcon && } {label}
diff --git a/src/showcase/setup/SetupPage.js b/src/showcase/setup/SetupPage.js index 169af9a6c1..4742665736 100644 --- a/src/showcase/setup/SetupPage.js +++ b/src/showcase/setup/SetupPage.js @@ -25,13 +25,6 @@ npm install primereact --save

Import

-

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.

- -{` -import {Accordion,AccordionTab} from 'primereact'; - -`} -

Importing from primereact will load all other components as well, to only import a specific component pattern would result in a smaller bundle size.