mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
chore(deps): upgrade tailwind and prettier [EE-5218] (#10068)
This commit is contained in:
parent
cb7377ead6
commit
0e2eb17220
69 changed files with 444 additions and 316 deletions
|
@ -78,7 +78,7 @@ export function withControlledInput<T>(
|
|||
// extract keys of values that will be updated outside of React lifecycle and their handler functions
|
||||
const keysToControl = Object.entries(controlledValueOnChangePairs) as [
|
||||
keyof T,
|
||||
keyof T
|
||||
keyof T,
|
||||
][];
|
||||
|
||||
function WrapperComponent(props: T) {
|
||||
|
@ -99,7 +99,7 @@ export function withControlledInput<T>(
|
|||
(value: T[keyof T]) => {
|
||||
// update the state with the value coming from WrappedComponent
|
||||
setControlledValues(
|
||||
(c) => ({ ...c, [valueKey]: value } as KeyRecord<T>)
|
||||
(c) => ({ ...c, [valueKey]: value }) as KeyRecord<T>
|
||||
);
|
||||
|
||||
// call the bound handler func to update the value outside of React
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue