renamed to SelectOption
This commit is contained in:
parent
359ece98f9
commit
ac135dbfdc
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import type { Option } from "ui-shared";
|
import type { SelectOption } from "ui-shared";
|
||||||
import { SelectControl } from "ui-shared";
|
import { SelectControl } from "ui-shared";
|
||||||
import { getSupportedLocales } from "../api/methods";
|
import { getSupportedLocales } from "../api/methods";
|
||||||
import { usePromise } from "../utils/usePromise";
|
import { usePromise } from "../utils/usePromise";
|
||||||
|
@ -15,7 +15,7 @@ const localeToDisplayName = (locale: string) => {
|
||||||
|
|
||||||
export const LocaleSelector = () => {
|
export const LocaleSelector = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [locales, setLocales] = useState<Option[]>([]);
|
const [locales, setLocales] = useState<SelectOption[]>([]);
|
||||||
|
|
||||||
usePromise(
|
usePromise(
|
||||||
(signal) => getSupportedLocales({ signal }),
|
(signal) => getSupportedLocales({ signal }),
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
} from "@patternfly/react-core";
|
} from "@patternfly/react-core";
|
||||||
import { FormLabel } from "./FormLabel";
|
import { FormLabel } from "./FormLabel";
|
||||||
|
|
||||||
export type Option = {
|
export type SelectOption = {
|
||||||
key: string;
|
key: string;
|
||||||
value: string;
|
value: string;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue