mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
This commit fixes invalid prop spreading warnings in all the table rows
I could find through a quick search in the code base.
The issue is that you can't spread the "key" prop into a component. It
*must* be an explicit prop.
The process is the same everywhere:
1. Instead of spreading `row.getRowProps()` into the component, we
extract and split it: `const {key, ...rowProps} = row.getRowProps()`.
2. Do the same thing for cellProps.
|
||
|---|---|---|
| .. | ||
| apiToken | ||
| auth | ||
| banners | ||
| billing | ||
| cors | ||
| groups | ||
| instance-admin | ||
| instance-privacy | ||
| invoice | ||
| license | ||
| maintenance | ||
| menu | ||
| network | ||
| roles | ||
| serviceAccounts | ||
| users | ||
| Admin.tsx | ||
| AdminIndex.tsx | ||
| AdminRedirect.tsx | ||
| adminRoutes.ts | ||
| filterAdminRoutes.test.ts | ||
| filterAdminRoutes.ts | ||
| LazyAdmin.tsx | ||
| LazyAdminExport.tsx | ||
| useAdminRoutes.ts | ||