purged redundant code and library imports

This commit is contained in:
Zhongheng Liu 2024-01-17 23:50:30 +02:00
commit 342324809b
No known key found for this signature in database
2 changed files with 1 additions and 7 deletions

View file

@ -6,8 +6,6 @@ import { MessageContainer } from "./Chat/MessageContainer";
import strings from "./Intl/strings.json";
import { LangContext, LoginType } from "./context";
import { contentTypes, domain, endpoints, port } from "./consts";
import { randomUUID } from "crypto";
// what we "in the business" call type gymnastics
const Wrapper = (): React.ReactElement => {
const [lang, setLang] = useState<LangType>("en_US");

View file

@ -7,8 +7,4 @@ const LangContext = createContext("en_US");
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);
root.render(
<LangContext.Provider value="en_US">
<Wrapper />
</LangContext.Provider>
);
root.render(<Wrapper />);