mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Library updates (#792)
* Upgrade Typescript to 4.0 * Update i18n-iso-countries to 6.0 * Update react-intl to 5.8.0 * Update jimp to 0.16.1 * Update apollo and graphql libraries * Update various libraries and fix linting/type errors * Refactor cache invalidation * Codegen refetch queries
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useState, CSSProperties } from "react";
|
||||
import Select, { ValueType } from "react-select";
|
||||
import Select, { ValueType, Props } from "react-select";
|
||||
import CreatableSelect from "react-select/creatable";
|
||||
import { debounce } from "lodash";
|
||||
|
||||
@@ -388,15 +388,13 @@ const SelectComponent: React.FC<ISelectProps & ITypeProps> = ({
|
||||
...base,
|
||||
color: "#000",
|
||||
}),
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
container: (base: CSSProperties, state: any) => ({
|
||||
container: (base: CSSProperties, props: Props) => ({
|
||||
...base,
|
||||
zIndex: state.isFocused ? 10 : base.zIndex,
|
||||
zIndex: props.isFocused ? 10 : base.zIndex,
|
||||
}),
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
multiValueRemove: (base: CSSProperties, state: any) => ({
|
||||
multiValueRemove: (base: CSSProperties, props: Props) => ({
|
||||
...base,
|
||||
color: state.isFocused ? base.color : "#333333",
|
||||
color: props.isFocused ? base.color : "#333333",
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user