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:
InfiniteTF
2020-09-11 05:01:00 +02:00
committed by GitHub
parent 5ba11e0e93
commit 5cd7dcaeb2
27 changed files with 2076 additions and 1881 deletions

View File

@@ -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",
}),
};