purged redundant code and library imports
This commit is contained in:
parent
4afc019229
commit
342324809b
2 changed files with 1 additions and 7 deletions
|
@ -6,8 +6,6 @@ import { MessageContainer } from "./Chat/MessageContainer";
|
||||||
import strings from "./Intl/strings.json";
|
import strings from "./Intl/strings.json";
|
||||||
import { LangContext, LoginType } from "./context";
|
import { LangContext, LoginType } from "./context";
|
||||||
import { contentTypes, domain, endpoints, port } from "./consts";
|
import { contentTypes, domain, endpoints, port } from "./consts";
|
||||||
import { randomUUID } from "crypto";
|
|
||||||
|
|
||||||
// what we "in the business" call type gymnastics
|
// what we "in the business" call type gymnastics
|
||||||
const Wrapper = (): React.ReactElement => {
|
const Wrapper = (): React.ReactElement => {
|
||||||
const [lang, setLang] = useState<LangType>("en_US");
|
const [lang, setLang] = useState<LangType>("en_US");
|
||||||
|
|
|
@ -7,8 +7,4 @@ const LangContext = createContext("en_US");
|
||||||
const root = ReactDOM.createRoot(
|
const root = ReactDOM.createRoot(
|
||||||
document.getElementById("root") as HTMLElement
|
document.getElementById("root") as HTMLElement
|
||||||
);
|
);
|
||||||
root.render(
|
root.render(<Wrapper />);
|
||||||
<LangContext.Provider value="en_US">
|
|
||||||
<Wrapper />
|
|
||||||
</LangContext.Provider>
|
|
||||||
);
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue