renamed to SelectOption

This commit is contained in:
Erik Jan de Wit 2023-07-03 15:11:52 +02:00 committed by Pedro Igor
parent 359ece98f9
commit ac135dbfdc
2 changed files with 3 additions and 3 deletions

View file

@ -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<Option[]>([]);
const [locales, setLocales] = useState<SelectOption[]>([]);
usePromise(
(signal) => getSupportedLocales({ signal }),

View file

@ -15,7 +15,7 @@ import {
} from "@patternfly/react-core";
import { FormLabel } from "./FormLabel";
export type Option = {
export type SelectOption = {
key: string;
value: string;
};