Commit 04a037e
refactor: replace JSX.Element return types with React.ReactNode (#6926)
JSX.Element excludes null, strings, numbers, and fragments that
components legitimately return. Fixes all 340 react-doctor
no-jsx-element-type diagnostics.
createNavigationLucideIcon's factories declared `() => JSX.Element` as a
function type, which the rule does not flag but which blocked widening
the components they return, so those widened too.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d168166 commit 04a037e
278 files changed
Lines changed: 360 additions & 345 deletions
File tree
- src
- attributes/components
- AssignedAttributesCard
- AttributeAssignedTypesCard
- AttributeDetails
- AttributeListTableSkeleton
- AttributeOrganization
- AttributePage
- AttributeProperties
- AttributeReferenceTypesSection
- AttributeValueEditDialog
- AttributeValueInlineAdd
- AttributeValuePasteProposal
- AttributeValueRequiredCell
- SwatchPreview
- categories
- components
- CategoryListDatagrid
- CategoryListPage
- CategoryProducts
- CategorySubcategories
- CategoryUpdatePage
- CreateCategoryDialog
- views/CategoryList
- channels/components/CurrencyCodeCombobox
- collections/components
- CollectionProducts
- CreateCollectionDialog
- components
- AppLayout
- ContextualLinks
- ListFilters/components
- AssignListCard
- AssignPickerBackfillExhausted
- AssignPickerListEmptyState
- AssignPickerListLoading
- AssignProductDialog
- AssignShippingZoneDialog
- AssignWarehouseDialog
- AssignableListTable
- AttributeClass
- AttributeInputTypeIcon
- Attributes
- ButtonGroupWithDropdown
- Callout
- Channel
- Combobox/components
- ConditionalFilter
- UI
- CopyableText
- CountryList
- CreateAttributeDialog
- CustomerType
- Date
- DeletableItem
- DetailGroupBox
- DetailPageContent
- DetailPageSectionLayout
- DetailSettingToggleRow
- DetailSettingsCard
- DragHandle
- EmptyImage
- EntityBackgroundImageField
- FixedAtCreationField
- Form
- InsetSegmentedControl
- KpiCard
- ListSearchInput
- ModalFilters
- ModelType
- Placeholder
- ProductType
- SaveFilterTabDialog
- Settings
- Sidebar
- user
- Skeleton
- SortableTable
- SubMenu
- TableRowLink
- Timeline
- configuration
- customerTypes/components
- CreateCustomerTypeDialog
- CustomerTypeAttributes
- CustomerTypeDetailsPage
- CustomerTypeDetails
- customers/components
- CustomerAddresses
- CustomerAttributesCard
- CustomerDetailsPage
- CustomerListPage
- CustomerOrders
- CustomerOverview
- CustomerTypeCard
- CustomerTypeTabs
- discounts/components
- DiscountCategories
- DiscountCollections
- DiscountDates
- DiscountDetailsPage
- DiscountProducts
- DiscountRules
- componenets
- RuleFormModal
- RuleForm/components/RuleConditions
- RulesList/components/RuleListContainer
- DiscountSavebar
- DiscountScheduleCard
- DiscountVariants
- VoucherBulkDeleteDialog
- VoucherCatalogueSection
- VoucherCatalogueUnassignDialog
- VoucherChannelAvailabilityCard
- VoucherCodesAddButton
- VoucherCodesCard
- VoucherCodesTable
- VoucherCodes
- VoucherDeleteDialog
- VoucherDiscountSection
- VoucherLimits
- VoucherRequirements
- VoucherScheduleCard
- extensions
- components/ResolveAppId
- preferences
- views/EditCustomExtension/components/TokenCreateDialog
- giftCards
- GiftCardSettings
- GiftCardExpirySettingsCard
- GiftCardUpdate
- GiftCardAssignedCustomerCard
- GiftCardBalanceCard
- GiftCardHistory
- GiftCardProvenanceCard
- GiftCardUpdateDetailsCard
- GiftCardUpdateExpirySelect
- GiftCardsList
- GiftCardListSearchAndFilters
- home
- icons
- modelTypes/components
- CreateModelTypeDialog
- PageTypeAttributes
- PageTypeDetailsPage
- PageTypeDetails
- modeling/components/PageDetailsPage
- notificationsSettings
- components
- DisableStaffEmailsDialog
- EmailNotificationsPage
- NotificationsHubPage
- StaffEmailsSettingsCard
- StaffOrderAlertRecipientsCard
- SwitchToDefaultDeliveryDialog
- views
- orders/components
- OrderCaptureDialog
- OrderCardTitle
- OrderChannelSettingsMatrix
- OrderCheckoutStockSettings
- OrderFulfillLine
- OrderGrantRefundPage/components
- OrderLineExpandedPanel
- OrderLineGroupBottomSeparator
- OrderLineRowActions
- OrderReturnsRefundsSettingsCard
- OrderSettingsPage
- OrderTransactionsSection
- ReasonReferenceModal
- RefundTransferFailureInfo
- productTypes/components
- CreateProductTypeDialog
- ProductTypeAttributes
- ProductTypeDetailsPage
- ProductTypeDetails
- ProductTypeKindTiles
- ProductTypePdpSchematic
- ProductTypeVariantAttributes
- products/components
- CreateProductDialog
- ProductExportDialog
- ProductExternalMediaDialog
- ProductListPagination
- ProductListViewSwitch
- ProductMedia
- ProductUpdatePage
- ProductVariantPrice
- refundsSettings
- components/RefundsSettingsPage
- views
- ripples/components/RippleVideoAnnouncement
- shipping/components
- OrderValue
- PricingCard
- ShippingMethodChannelsEmptyPlaceholder
- ShippingZoneDetailsPage
- ShippingZoneRatesPage
- ShippingZoneRates
- siteSettings/components/SiteSettingsPage
- StoreDetailsCard
- staff/components
- StaffAddMemberDialog
- StaffMetadataDialog
- StaffPasswordResetDialog
- StaffPreferences
- StaffProperties
- structures/components
- MenuBulkDeleteDialog
- MenuCreateDialog
- MenuDeleteDialog
- MenuItemDialog
- taxes/components/TaxCountryDialog
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments