Skip to content

Commit

Permalink
ui
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Nov 13, 2024
1 parent d15a884 commit 56baad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chrome/src/components/HookView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ export const ValueViewTree = ({ name, item, prefix }: { name: string; item: HOOK
const StateIcon = expand ? <TriangleDownIcon width="16" height="16" /> : <TriangleRightIcon width="16" height="16" />;

if (!currentIsExpand) {
const element = <span className={`hook-${item.t}`}>{String(item.v)}</span>;
const textContent = item.t === "String" ? `"${String(item.v)}"` : String(item.v);

const element = <span className={`hook-${item.t}`}>{textContent}</span>;

return (
<div className="hook-value-view">
<div className="flex w-full my-0.5 items-center">
Expand Down

0 comments on commit 56baad5

Please sign in to comment.