1
0
Fork 0
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:
Chaim Lev-Ari 2023-09-04 16:20:36 +01:00 committed by GitHub
parent cb7377ead6
commit 0e2eb17220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 444 additions and 316 deletions

View file

@ -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