Skip to content

Commit 5f0dd6d

Browse files
snomiaoclaudeCopilot
authored
fix: resolve browser console warnings by fixing JSX attribute names (#197)
* fix: resolve browser console warnings by fixing JSX attribute names Fixed stroke-linecap, stroke-linejoin, and stroke-width SVG attributes to use camelCase JSX naming (strokeLinecap, strokeLinejoin, strokeWidth). Also fixed improper nesting of div inside p element in NodeDetails component. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * Update components/publisher/PublisherNodes.tsx Co-authored-by: Copilot <[email protected]> * Update components/nodes/NodesCard.tsx Co-authored-by: Copilot <[email protected]> * Update components/AccessTokens/PersonalAccessTokenTable.tsx Co-authored-by: Copilot <[email protected]> * Update components/AccessTokens/CopyAccessKeyModal.tsx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 8f76244 commit 5f0dd6d

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

components/AccessTokens/CopyAccessKeyModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export const CopyAccessTokenModal: React.FC<CopyAccessTokenModalProps> = ({
8989
>
9090
<path
9191
stroke="currentColor"
92-
stroke-linecap="round"
93-
stroke-linejoin="round"
94-
stroke-width="2"
92+
strokeLinecap="round"
93+
strokeLinejoin="round"
94+
strokeWidth="2"
9595
d="M1 5.917 5.724 10.5 15 1.5"
9696
/>
9797
</svg>

components/AccessTokens/PersonalAccessTokenTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ const PersonalAccessTokenTable: React.FC<PersonAccessTokenTableProps> = ({
8787
>
8888
<path
8989
stroke="currentColor"
90-
stroke-linecap="round"
91-
stroke-linejoin="round"
92-
stroke-width="2"
90+
strokeLinecap="round"
91+
strokeLinejoin="round"
92+
strokeWidth="2"
9393
d="M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"
9494
/>
9595
</svg>

components/nodes/NodeDetails.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ const NodeDetails = () => {
317317
>
318318
<path
319319
stroke="currentColor"
320-
stroke-linecap="round"
321-
stroke-width="2"
320+
strokeLinecap="round"
321+
strokeWidth="2"
322322
d="M4.37 7.657c2.063.528 2.396 2.806 3.202 3.87 1.07 1.413 2.075 1.228 3.192 2.644 1.805 2.289 1.312 5.705 1.312 6.705M20 15h-1a4 4 0 0 0-4 4v1M8.587 3.992c0 .822.112 1.886 1.515 2.58 1.402.693 2.918.351 2.918 2.334 0 .276 0 2.008 1.972 2.008 2.026.031 2.026-1.678 2.026-2.008 0-.65.527-.9 1.177-.9H20M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
323323
/>
324324
</svg>
@@ -337,7 +337,7 @@ const NodeDetails = () => {
337337
>
338338
<path
339339
stroke="currentColor"
340-
stroke-width="2"
340+
strokeWidth="2"
341341
d="M11.083 5.104c.35-.8 1.485-.8 1.834 0l1.752 4.022a1 1 0 0 0 .84.597l4.463.342c.9.069 1.255 1.2.556 1.771l-3.33 2.723a1 1 0 0 0-.337 1.016l1.03 4.119c.214.858-.71 1.552-1.474 1.106l-3.913-2.281a1 1 0 0 0-1.008 0L7.583 20.8c-.764.446-1.688-.248-1.474-1.106l1.03-4.119A1 1 0 0 0 6.8 14.56l-3.33-2.723c-.698-.571-.342-1.702.557-1.771l4.462-.342a1 1 0 0 0 .84-.597l1.753-4.022Z"
342342
/>
343343
</svg>
@@ -360,9 +360,9 @@ const NodeDetails = () => {
360360
>
361361
<path
362362
stroke="currentColor"
363-
stroke-linecap="round"
364-
stroke-linejoin="round"
365-
stroke-width="2"
363+
strokeLinecap="round"
364+
strokeLinejoin="round"
365+
strokeWidth="2"
366366
d="M12 13V4M7 14H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2m-1-5-4 5-4-5m9 8h.01"
367367
/>
368368
</svg>
@@ -442,18 +442,18 @@ const NodeDetails = () => {
442442
}
443443
/>
444444
</p>
445-
<p className="flex-grow mt-3 text-base font-normal text-gray-200 line-clamp-2">
445+
<div className="flex-grow mt-3 text-base font-normal text-gray-200 line-clamp-2">
446446
{version.changelog}
447-
<div
448-
className="text-sm font-normal text-blue-500 cursor-pointer"
449-
onClick={() =>
450-
selectVersion(version)
451-
}
452-
tabIndex={0}
453-
>
454-
{t('More')}
455-
</div>
456-
</p>
447+
</div>
448+
<div
449+
className="text-sm font-normal text-blue-500 cursor-pointer"
450+
onClick={() =>
451+
selectVersion(version)
452+
}
453+
tabIndex={0}
454+
>
455+
{t('More')}
456+
</div>
457457
</div>
458458
))}
459459
</div>

components/nodes/NodesCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ const NodesCard: React.FC<NodesCard> = ({
5454
>
5555
<path
5656
stroke="currentColor"
57-
stroke-linecap="round"
58-
stroke-linejoin="round"
59-
stroke-width="2"
57+
strokeLinecap="round"
58+
strokeLinejoin="round"
59+
strokeWidth="2"
6060
d="M12 13V4M7 14H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2m-1-5-4 5-4-5m9 8h.01"
6161
/>
6262
</svg>

components/publisher/PublisherNodes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ const PublisherNodes: React.FC<PublisherNodesProps> = ({
4949
>
5050
<path
5151
stroke="currentColor"
52-
stroke-linecap="round"
53-
stroke-linejoin="round"
54-
stroke-width="2"
52+
strokeLinecap="round"
53+
strokeLinejoin="round"
54+
strokeWidth="2"
5555
d="M10.779 17.779 4.36 19.918 6.5 13.5m4.279 4.279 8.364-8.643a3.027 3.027 0 0 0-2.14-5.165 3.03 3.03 0 0 0-2.14.886L6.5 13.5m4.279 4.279L6.499 13.5m2.14 2.14 6.213-6.504M12.75 7.04 17 11.28"
5656
/>
5757
</svg>

0 commit comments

Comments
 (0)