From ac135dbfdc307aa3eccd54e2125ce74600d128c5 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 3 Jul 2023 15:11:52 +0200 Subject: [PATCH] renamed to SelectOption --- js/apps/account-ui/src/personal-info/LocaleSelector.tsx | 4 ++-- js/libs/ui-shared/src/controls/SelectControl.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/apps/account-ui/src/personal-info/LocaleSelector.tsx b/js/apps/account-ui/src/personal-info/LocaleSelector.tsx index 1a38ba87e0..07baa91b5e 100644 --- a/js/apps/account-ui/src/personal-info/LocaleSelector.tsx +++ b/js/apps/account-ui/src/personal-info/LocaleSelector.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; import { useTranslation } from "react-i18next"; -import type { Option } from "ui-shared"; +import type { SelectOption } from "ui-shared"; import { SelectControl } from "ui-shared"; import { getSupportedLocales } from "../api/methods"; import { usePromise } from "../utils/usePromise"; @@ -15,7 +15,7 @@ const localeToDisplayName = (locale: string) => { export const LocaleSelector = () => { const { t } = useTranslation(); - const [locales, setLocales] = useState([]); + const [locales, setLocales] = useState([]); usePromise( (signal) => getSupportedLocales({ signal }), diff --git a/js/libs/ui-shared/src/controls/SelectControl.tsx b/js/libs/ui-shared/src/controls/SelectControl.tsx index a8b78309e2..aee9b4ea72 100644 --- a/js/libs/ui-shared/src/controls/SelectControl.tsx +++ b/js/libs/ui-shared/src/controls/SelectControl.tsx @@ -15,7 +15,7 @@ import { } from "@patternfly/react-core"; import { FormLabel } from "./FormLabel"; -export type Option = { +export type SelectOption = { key: string; value: string; };