ran npm run prettier-fix command to fix the code styling

This commit is contained in:
kavinkumarbaskar
2025-04-05 23:32:10 +05:30
parent a3be8f6376
commit ca1854b071
2 changed files with 26 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ const JsonView = memo(
initialExpandDepth = 3,
className,
withCopyButton = true,
isError = false
isError = false,
}: JsonViewProps) => {
const { toast } = useToast();
const [copied, setCopied] = useState(false);
@@ -102,7 +102,7 @@ const JsonView = memo(
name={name}
depth={0}
initialExpandDepth={initialExpandDepth}
isError = {isError}
isError={isError}
/>
</div>
</div>
@@ -121,7 +121,13 @@ interface JsonNodeProps {
}
const JsonNode = memo(
({ data, name, depth = 0, initialExpandDepth, isError = false }: JsonNodeProps) => {
({
data,
name,
depth = 0,
initialExpandDepth,
isError = false,
}: JsonNodeProps) => {
const [isExpanded, setIsExpanded] = useState(depth < initialExpandDepth);
const getDataType = (value: JsonValue): string => {
@@ -241,7 +247,14 @@ const JsonNode = memo(
{name}:
</span>
)}
<pre className={clsx(typeStyleMap.string, "break-all whitespace-pre-wrap")}>"{value}"</pre>
<pre
className={clsx(
typeStyleMap.string,
"break-all whitespace-pre-wrap",
)}
>
"{value}"
</pre>
</div>
);
}