{
- return "";
- };
-
const prefix = isDifferent ? (isOldVersion ? " -" : " +") : " ";
const keyDisplay = keyName ? `"${keyName}": ` : "";
const comma = !isLastItem ? "," : "";
@@ -257,8 +252,8 @@ const renderJsonWithDiffs = (
{prefix}
{indent}
- {keyName && {keyDisplay}}
- {valueDisplay}
+ {keyName && {keyDisplay}}
+ {valueDisplay}
{comma}
@@ -271,8 +266,8 @@ const renderJsonWithDiffs = (
{prefix}
{indent}
- {keyName && {keyDisplay}}
- []
+ {keyName && {keyDisplay}}
+ []
{comma}
@@ -285,8 +280,8 @@ const renderJsonWithDiffs = (
{prefix}
{indent}
- {keyName && {keyDisplay}}
- {"{}"}
+ {keyName && {keyDisplay}}
+ {"{}"}
{comma}
@@ -326,12 +321,8 @@ const renderJsonWithDiffs = (
{indent}
- {keyName && (
-
- {keyDisplay}
-
- )}
- [
+ {keyName && {keyDisplay}}
+ [
@@ -363,7 +354,7 @@ const renderJsonWithDiffs = (
{indent}
- ]
+ ]
{comma}
@@ -382,12 +373,8 @@ const renderJsonWithDiffs = (
{indent}
- {keyName && (
-
- {keyDisplay}
-
- )}
- {"{"}
+ {keyName && {keyDisplay}}
+ {"{"}
@@ -420,7 +407,7 @@ const renderJsonWithDiffs = (
{indent}
- {"}"}
+ {"}"}
{comma}
@@ -630,18 +617,18 @@ export const SecretVersionDiffView = ({
{showHeader && renderHeader()}
{!collapsed && (
-
-
+
+
{oldVersionContent}
-
+
{newVersionContent}