diff --git a/package.json b/package.json index 41b9a254..2e298ff3 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "react-router-dom": "^5.2.0", "react-scroll": "^1.8.2", "redux": "^4.1.0", - "revolt.js": "4.3.3-alpha.7", + "revolt.js": "4.3.3-alpha.8", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", 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 fbebe8f1..7f91b1c7 100644 --- a/src/components/common/LocaleSelector.tsx +++ b/src/components/common/LocaleSelector.tsx @@ -1,7 +1,7 @@ import ComboBox from "../ui/ComboBox"; import { dispatch } from "../../redux"; import { connectState } from "../../redux/connector"; -import { LanguageEntry, Languages } from "../../context/Locale"; +import { Language, LanguageEntry, Languages } from "../../context/Locale"; type Props = { locale: string; @@ -14,12 +14,12 @@ export function LocaleSelector(props: Props) { onChange={e => dispatch({ 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 (