mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +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
|
@ -44,7 +44,7 @@ export function mutationOptions<
|
|||
TData = unknown,
|
||||
TError = unknown,
|
||||
TVariables = void,
|
||||
TContext = unknown
|
||||
TContext = unknown,
|
||||
>(...options: MutationOptions<TData, TError, TVariables, TContext>[]) {
|
||||
return mergeOptions(options);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ export function queryOptions<
|
|||
TQueryFnData = unknown,
|
||||
TError = unknown,
|
||||
TData = TQueryFnData,
|
||||
TQueryKey extends QueryKey = QueryKey
|
||||
TQueryKey extends QueryKey = QueryKey,
|
||||
>(...options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>[]) {
|
||||
return mergeOptions(options);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -70,9 +70,9 @@ export function createFormValidationComponent<TFormModel, TData = never>(
|
|||
return {
|
||||
template: `<ng-form name="$ctrl.form">
|
||||
<${kebabName} ${propsWithErrors
|
||||
.filter((p) => p !== 'onChange')
|
||||
.map((p) => `${_.kebabCase(p)}="$ctrl.${p}"`)
|
||||
.join(' ')}
|
||||
.filter((p) => p !== 'onChange')
|
||||
.map((p) => `${_.kebabCase(p)}="$ctrl.${p}"`)
|
||||
.join(' ')}
|
||||
on-change="($ctrl.handleChange)"
|
||||
></${kebabName}>
|
||||
</ng-form>`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue