diff --git a/src/components/common/AutoComplete.tsx b/src/components/common/AutoComplete.tsx index 0e0f399d..565f4a4a 100644 --- a/src/components/common/AutoComplete.tsx +++ b/src/components/common/AutoComplete.tsx @@ -384,7 +384,7 @@ export default function AutoComplete({ detached, state, setState, onClick }: Pic }) } onClick={onClick}> - + )[match]} size={20} /> :{match}: ))} diff --git a/src/components/common/LocaleSelector.tsx b/src/components/common/LocaleSelector.tsx index 9e68cd72..225e2c38 100644 --- a/src/components/common/LocaleSelector.tsx +++ b/src/components/common/LocaleSelector.tsx @@ -1,7 +1,7 @@ import ComboBox from "../ui/ComboBox"; import { connectState } from "../../redux/connector"; import { WithDispatcher } from "../../redux/reducers"; -import { LanguageEntry, Languages } from "../../context/Locale"; +import { Language, LanguageEntry, Languages } from "../../context/Locale"; type Props = WithDispatcher & { locale: string; @@ -15,12 +15,12 @@ export function LocaleSelector(props: Props) { props.dispatcher && props.dispatcher({ type: "SET_LOCALE", - locale: e.currentTarget.value as any + locale: e.currentTarget.value as Language }) } > {Object.keys(Languages).map(x => { - const l = (Languages as any)[x] as LanguageEntry; + const l = Languages[x as keyof typeof Languages]; return (