balkan-orgchart-react 9.1.67 → 9.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +6 -6
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "url": "git+https://github.com/BALKANGraph/OrgChartReact.git"
55
55
  },
56
56
  "dependencies": {},
57
- "version": "9.1.67"
57
+ "version": "9.1.68"
58
58
  }
package/readme.md CHANGED
@@ -35,7 +35,7 @@ yarn add balkan-orgchart-react
35
35
 
36
36
  ## Declarative Usage
37
37
 
38
- ```react
38
+ ```js
39
39
 
40
40
 
41
41
  import {OrgChart, Employee} from "balkan-orgchart-react";
@@ -43,11 +43,11 @@ import {OrgChart, Employee} from "balkan-orgchart-react";
43
43
  function App() {
44
44
  return (
45
45
  <>
46
- <OrgChart nodeBinding={{ field_0: 'name', field_1: 'title', img_0: 'photo'}} template="olivia">
47
- <Employee name='Denny Curtis' title='CEO' photo="https://cdn.balkan.app/shared/a/2.jpg" >
48
- <Employee name='Lexie Cole' title='QA Lead' photo="https://cdn.balkan.app/shared/a/3.jpg"></Employee>
49
- <Employee name='Janae Barrett' title='Technical Director' photo="https://cdn.balkan.app/shared/a/4.jpg"></Employee>
50
- <Employee name='Aaliyah Webb' title='Assistant' photo="https://cdn.balkan.app/shared/a/5.jpg" assistant={true}></Employee>
46
+ <OrgChart nodeBinding={{ field_0: 'name', field_1: 'title' }} >
47
+ <Employee name='Denny Curtis' title='CEO'>
48
+ <Employee name='Lexie Cole' title='QA Lead'></Employee>
49
+ <Employee name='Janae Barrett' title='Technical Director'></Employee>
50
+ <Employee name='Aaliyah Webb' title='Assistant' assistant={true}></Employee>
51
51
  </Employee>
52
52
  </OrgChart>
53
53
  </>