From 4f032d06e3557831e86fd03ec1f5053d3d05dc39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Peres=20Fran=C3=A7a?= Date: Fri, 4 Sep 2020 15:18:04 -0300 Subject: [PATCH] fixing lifecycle type (#140) --- .../beagle-react/src/components/BeagleTabView/lifecycles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/beagle-react/src/components/BeagleTabView/lifecycles.ts b/packages/beagle-react/src/components/BeagleTabView/lifecycles.ts index 33c82774..06284221 100644 --- a/packages/beagle-react/src/components/BeagleTabView/lifecycles.ts +++ b/packages/beagle-react/src/components/BeagleTabView/lifecycles.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { BeagleUIElement } from '@zup-it/beagle-web' +import { IdentifiableBeagleUIElement } from '@zup-it/beagle-web' -export function transformItems(tabView: Record) { +export function transformItems(tabView: IdentifiableBeagleUIElement) { if (!Array.isArray(tabView.children)) return - tabView.children.forEach((child: BeagleUIElement) => { + tabView.children.forEach((child) => { child._beagleComponent_ = 'beagle:tabitem' }) }