react-matrix-tree
Advanced tools
Comparing version 1.0.2 to 1.0.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var react_1 = tslib_1.__importStar(require("react")); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
var styled_components_1 = tslib_1.__importDefault(require("styled-components")); | ||
@@ -21,7 +21,2 @@ var BottomArrow = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n borderbottom: 5px solid ", ";\n"], ["\n borderbottom: 5px solid ", ";\n"])), function (props) { return props.color; }); | ||
var data = _a.data, isMobile = _a.isMobile, color = _a.color; | ||
(0, react_1.useEffect)(function () { | ||
if (!data) { | ||
throw Error('Data field is undefined, need array value to render a Tree component'); | ||
} | ||
}, [data]); | ||
var GetTree = function (_a) { | ||
@@ -28,0 +23,0 @@ var childrens = _a.childrens, level = _a.level, ismobileview = _a.ismobileview; |
import { __makeTemplateObject } from "tslib"; | ||
import React, { useEffect } from 'react'; | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
@@ -19,7 +19,2 @@ var BottomArrow = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n borderbottom: 5px solid ", ";\n"], ["\n borderbottom: 5px solid ", ";\n"])), function (props) { return props.color; }); | ||
var data = _a.data, isMobile = _a.isMobile, color = _a.color; | ||
useEffect(function () { | ||
if (!data) { | ||
throw Error('Data field is undefined, need array value to render a Tree component'); | ||
} | ||
}, [data]); | ||
var GetTree = function (_a) { | ||
@@ -26,0 +21,0 @@ var childrens = _a.childrens, level = _a.level, ismobileview = _a.ismobileview; |
{ | ||
"name": "react-matrix-tree", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20989
161