1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/project/ProjectEnvironment
Thomas Heartman 622998c62e
fix: invalid spreading of keys into table rows everywhere (#8551)
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.
2024-10-28 13:47:22 +01:00
..
EnvironmentHideDialog fix: invalid spreading of keys into table rows everywhere (#8551) 2024-10-28 13:47:22 +01:00
getEnabledEnvs.test.ts
helpers.ts
ProjectEnvironment.tsx fix: invalid spreading of keys into table rows everywhere (#8551) 2024-10-28 13:47:22 +01:00