mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
622998c62e
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. |
||
---|---|---|
.. | ||
EnvironmentHideDialog | ||
getEnabledEnvs.test.ts | ||
helpers.ts | ||
ProjectEnvironment.tsx |