From 4d9af394a11b1b7f131cc43068cb4c68f98f79b7 Mon Sep 17 00:00:00 2001 From: Ryan Albrecht Date: Sun, 19 Jul 2026 19:55:29 +0000 Subject: [PATCH] fix(react): Move Wrapper component to module scope in RecursiveStructuredData --- .../recursiveStructuredData.tsx | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/static/app/components/structuredEventData/recursiveStructuredData.tsx b/static/app/components/structuredEventData/recursiveStructuredData.tsx index 89ae29dcee78..f34e7580b875 100644 --- a/static/app/components/structuredEventData/recursiveStructuredData.tsx +++ b/static/app/components/structuredEventData/recursiveStructuredData.tsx @@ -57,20 +57,11 @@ export function RecursiveStructuredData({ ); - function Wrapper({children}: {children: React.ReactNode}) { - return ( - - {formattedObjectKey} - {children} - - ); - } - if (config?.isNull?.(value) || value === null) { const nullValue = config?.renderNull?.(value) ?? String(value); return ( - + + + + {'"'} + + + + {prefix} + {children} + + ); +} + const ValueNull = styled('span')` font-weight: ${p => p.theme.font.weight.sans.medium}; color: var(--prism-property);