diff --git a/app/lib/seo/debugger.tsx b/app/lib/seo/debugger.tsx index 28efd1c002..eb82da196f 100644 --- a/app/lib/seo/debugger.tsx +++ b/app/lib/seo/debugger.tsx @@ -54,17 +54,17 @@ export function Debugger() { ); })} -
+
{matches.map(({id, handle, data}: RouteMatch, index: number) => (
- {id} -
+
{id}
+
                 {JSON.stringify(
                   recursivelyInvokeOrReturn(handle?.seo, data),
                   null,
                   2,
                 )}
-              
+
))}
@@ -76,27 +76,18 @@ export function Debugger() { return null; } return ( -
- +
+
{LABEL_MAP[label as keyof typeof LABEL_MAP]} - - {label === 'LdJson' ? ( - - {JSON.stringify(entries, null, 2)} - - ) : ( - entries.map((entry: React.ReactElement, index: number) => ( - - {renderToString(entry)} - - )) - )} +
+
+                {label === 'LdJson'
+                  ? JSON.stringify(entries, null, 2)
+                  : entries.map(
+                      (entry: React.ReactElement, index: number) =>
+                        renderToString(entry) + '\n',
+                    )}
+              
); })} @@ -155,7 +146,7 @@ function Item({ pass !== false ? ( @@ -168,7 +159,7 @@ function Item({ ) : ( @@ -181,14 +172,13 @@ function Item({ ); return ( -
+
{icon} - {property} + {property} - - {value.slice(0, 35)} - {value.length > 35 && '...'} + + {value}
);