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 { 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 }),
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { FormLabel } from "./FormLabel";
|
||||
|
||||
export type Option = {
|
||||
export type SelectOption = {
|
||||
key: string;
|
||||
value: string;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue