mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
Sweep small typecheck nits: union expansions + React 19 JSX + extra arg
- ColorVariantType missed the 5 outline-* bootstrap variants GroupForumThreadView and GroupForumThreadListView already use; adding them clears 4 errors. - React 19 moved the JSX namespace out of the global scope into the react module; WiredNeighborhoodSelectorView referenced JSX.Element without importing it. - showConfirm() takes 7 args; the chat link confirm in useOnClickChat passed an 8th 'link' icon arg left over from an older signature. - LocalizeText placeholder array is string[]; UserContainerView passed userProfile.friendsCount (number) — call .toString(). Net tsgo error count: 97 -> 90.
This commit is contained in:
@@ -83,7 +83,7 @@ export const UserContainerView: FC<{
|
||||
__html: LocalizeText(
|
||||
'extendedprofile.friends.count',
|
||||
['count'],
|
||||
[userProfile.friendsCount]
|
||||
[userProfile.friendsCount.toString()]
|
||||
)
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user