korbit-ai[bot] commented on code in PR #32313:
URL: https://github.com/apache/superset/pull/32313#discussion_r1962065355


##########
superset-frontend/src/types/TagType.ts:
##########
@@ -28,6 +28,7 @@ export interface TagType {
   name: string;
   index?: number | undefined;
   toolTipTitle?: string;
+  children?: React.ReactNode;

Review Comment:
   ### Missing React Type Import <sub>![category 
Functionality](https://img.shields.io/badge/Functionality-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The `children` prop is added without importing `React` type, which will 
cause a TypeScript compilation error.
   
   ###### Why this matters
   Without proper React type import, the application will fail to compile, 
preventing the Ant Design 5 upgrade from working correctly.
   
   ###### Suggested change ∙ *Feature Preview*
   Add React import at the top of the file:
   ```typescript
   import { MouseEventHandler, ReactNode } from 'react';
   
   export interface TagType {
     // ... other props
     children?: ReactNode;
   }
   ```
   
   
   </details>
   
   <sub>
   
   [![Report a problem with this 
comment](https://img.shields.io/badge/Report%20a%20problem%20with%20this%20comment-gray.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmNWVjMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10cmlhbmdsZS1hbGVydCI+PHBhdGggZD0ibTIxLjczIDE4LTgtMTRhMiAyIDAgMCAwLTMuNDggMGwtOCAxNEEyIDIgMCAwIDAgNCAyMWgxNmEyIDIgMCAwIDAgMS43My0zIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4ea0e412-e32e-407b-a080-2b4738dd329d?suggestedFixEnabled=true)
   
   💬 Chat with Korbit by mentioning @korbit-ai.
   </sub>
   
   <!--- korbi internal id:f9a591e2-a0b2-4015-a2e5-1c03e8e9f864 -->
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to