From a123b281dd78b250433604d4850582bb2cccc9f2 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 21 Sep 2021 23:04:26 -0400 Subject: [PATCH] Fix build --- packages/react-json-tree/examples/src/App.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-json-tree/examples/src/App.tsx b/packages/react-json-tree/examples/src/App.tsx index e79e4d01..53576e9e 100644 --- a/packages/react-json-tree/examples/src/App.tsx +++ b/packages/react-json-tree/examples/src/App.tsx @@ -5,15 +5,15 @@ import JSONTree, { StylingValue } from 'react-json-tree'; const getLabelStyle: StylingValue = ({ style }, nodeType, expanded) => ({ style: { ...style, - textTransform: expanded ? 'uppercase' : style.textTransform, + textTransform: expanded ? 'uppercase' : style!.textTransform, }, }); const getBoolStyle: StylingValue = ({ style }, nodeType) => ({ style: { ...style, - border: nodeType === 'Boolean' ? '1px solid #DD3333' : style.border, - borderRadius: nodeType === 'Boolean' ? 3 : style.borderRadius, + border: nodeType === 'Boolean' ? '1px solid #DD3333' : style!.border, + borderRadius: nodeType === 'Boolean' ? 3 : style!.borderRadius, }, }); @@ -30,7 +30,7 @@ const getValueLabelStyle: StylingValue = ({ style }, nodeType, keyPath) => ({ color: !Number.isNaN(keyPath[0]) && !(parseInt(keyPath, 10) % 2) ? '#33F' - : style.color, + : style!.color, }, });