diff options
-rw-r--r-- | src/App.tsx | 2 | ||||
-rw-r--r-- | src/index.tsx | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/App.tsx b/src/App.tsx index ce09b6d..2b6e62a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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"); diff --git a/src/index.tsx b/src/index.tsx index afe2f98..8e788d2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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 />); |