summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/Settings
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/Settings')
-rw-r--r--frontend/src/Settings/Providers/components.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/src/Settings/Providers/components.tsx b/frontend/src/Settings/Providers/components.tsx
index 93000df8f..c30742504 100644
--- a/frontend/src/Settings/Providers/components.tsx
+++ b/frontend/src/Settings/Providers/components.tsx
@@ -7,7 +7,7 @@ import React, {
} from "react";
import { Button, Col, Container, Row } from "react-bootstrap";
import { components } from "react-select";
-import { SelectComponents } from "react-select/src/components";
+import { SelectComponents } from "react-select/dist/declarations/src/components";
import {
BaseModal,
Selector,
@@ -213,11 +213,12 @@ export const ProviderModal: FunctionComponent = () => {
}, [info]);
const selectorComponents = useMemo<
- Partial<SelectComponents<ProviderInfo, false>>
+ Partial<SelectComponents<ProviderInfo, false, any>>
>(
() => ({
Option: ({ data, ...other }) => {
- const { label, value } = data as SelectorOption<ProviderInfo>;
+ const { label, value } =
+ data as unknown as SelectorOption<ProviderInfo>;
return (
<components.Option data={data} {...other}>
{label}