Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { Component } from 'react';
import { AgGridReact } from 'ag-grid-react';
import 'ag-grid/dist/styles/ag-grid.css';
import 'ag-grid/dist/styles/ag-theme-material.css';
import 'ag-grid-enterprise';
import {LicenseManager} from "ag-grid-enterprise/main";
// The tree view from ag-Grid requires an enterprise license and a product key
// Pricing: https://www.ag-grid.com/license-pricing.php
// Trial: https://www.ag-grid.com/start-trial.php
LicenseManager.setLicenseKey("your license key");
const data = [
{
orgHierarchy: ['Erica Rogers'],
jobTitle: 'CEO',
employmentType: 'Permanent',
email: 'erica.rogers@acme.com'
},
{
orgHierarchy: ['Erica Rogers', 'Malcolm Barrett'],
jobTitle: 'Exec. Vice President',
employmentType: 'Permanent',
email: 'malcolm.barrett@acme.com'
},
{
orgHierarchy: ['Erica Rogers', 'Malcolm Barrett', 'Esther Baker'],
import React, { Component } from 'react';
import { AgGridReact } from 'ag-grid-react';
import 'ag-grid/dist/styles/ag-grid.css';
import 'ag-grid/dist/styles/ag-theme-material.css';
import 'ag-grid-enterprise';
import {LicenseManager} from "ag-grid-enterprise/main";
// The tree view from ag-Grid requires an enterprise license and a product key
// Pricing: https://www.ag-grid.com/license-pricing.php
// Trial: https://www.ag-grid.com/start-trial.php
LicenseManager.setLicenseKey("your license key");
const data = [
{
orgHierarchy: ['Erica Rogers'],
jobTitle: 'CEO',
employmentType: 'Permanent',
email: 'erica.rogers@acme.com'
},
{
orgHierarchy: ['Erica Rogers', 'Malcolm Barrett'],
jobTitle: 'Exec. Vice President',
employmentType: 'Permanent',
email: 'malcolm.barrett@acme.com'
},
{
orgHierarchy: ['Erica Rogers', 'Malcolm Barrett', 'Esther Baker'],