diff --git a/src/panel/components/IssueCard.tsx b/src/panel/components/IssueCard.tsx index daf0732..01b61e5 100644 --- a/src/panel/components/IssueCard.tsx +++ b/src/panel/components/IssueCard.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import React, { useState } from 'react'; import type { Issue } from '@/types'; interface IssueCardProps { @@ -12,6 +12,7 @@ const SEVERITY_CONFIG = { }; const ISSUE_INFO: Record = { + MISSING_KEY: { title: 'Missing Key in List', why: 'Keys help React identify which items have changed, are added, or removed.', @@ -54,13 +55,13 @@ const ISSUE_INFO: Record

{info.title}

- {severity.label} @@ -151,7 +152,7 @@ export function IssueCard({ issue }: IssueCardProps) {
- +
Function: @@ -207,7 +208,7 @@ export function IssueCard({ issue }: IssueCardProps) {
)} -
+
{info.learnUrl && ( ); -} +});