Elffuss BraidHub

kikocis/continue public

chore: fix react warning (#6687)

* chore: fix react warning

* fix the other warning as well

* fix div inside tr warning
Changeset2c1fc907ac7f02a59fb08f4e14e709c70979b6e59b9652a37b4e90a91e9e9cad
AuthorAditya Mitra <61635505+uinstinct@users.noreply.github.com> · 2025-07-22 02:48 +05:30
CommitterGitHub <noreply@github.com> · 2025-07-21 14:18 -07:00
Parents2a19f9e1d9ea

Browse the files at this changeset

3 files changed

modified gui/src/components/History/HistoryTableRow.tsx +4 −4
@@ -79,7 +79,7 @@
7979 navigate("/");
8080 }}
8181 >
82- <div className="flex-1 cursor-pointer space-y-1">
82+ <td className="flex-1 cursor-pointer space-y-1">
8383 {editing ? (
8484 <div>
8585 <Input
@@ -114,10 +114,10 @@
114114 })}
115115 </span> */}
116116 </div>
117- </div>
117+ </td>
118118
119119 {hovered && !editing && (
120- <div className="bg-badge absolute right-2 top-1/2 ml-auto flex -translate-y-1/2 transform items-center gap-x-1 rounded-full px-2 py-1 shadow-md">
120+ <td className="bg-badge absolute right-2 top-1/2 ml-auto flex -translate-y-1/2 transform items-center gap-x-1 rounded-full px-2 py-1 shadow-md">
121121 <HeaderButtonWithToolTip
122122 text="Edit"
123123 onClick={async (e) => {
@@ -136,7 +136,7 @@
136136 >
137137 <TrashIcon width="1em" height="1em" />
138138 </HeaderButtonWithToolTip>
139- </div>
139+ </td>
140140 )}
141141 </tr>
142142 );
modified gui/src/components/console/Message.tsx +3 −1
@@ -48,7 +48,9 @@
4848 {includeRole ? renderMessageRole(message.role) : ""}
4949 {message.toolCalls
5050 ? message.toolCalls.map((toolCall) => (
51- <pre>Tool call: {JSON.stringify(toolCall, undefined, 2)}</pre>
51+ <pre key={toolCall.id}>
52+ Tool call: {JSON.stringify(toolCall, undefined, 2)}
53+ </pre>
5254 ))
5355 : ""}
5456 {renderMessageContent(message)}
modified gui/src/components/mainInput/Lump/sections/tool-policies/ToolPolicyItem.tsx +2 −2
@@ -161,8 +161,8 @@
161161 {parameters ? (
162162 <>
163163 <span className="text-xs font-bold">Arguments:</span>
164- {parameters.map((param) => (
165- <div className="block">
164+ {parameters.map((param, idx) => (
165+ <div key={idx} className="block">
166166 <code className="">{param[0]}</code>
167167 <span className="ml-1">{`(${param[1].type}):`}</span>
168168 <span className="ml-1 italic">{param[1].description}</span>