diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-01-17 23:50:30 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-01-17 23:50:30 +0200 |
commit | 342324809b8e79c8151f354e9a0bac9168cb231c (patch) | |
tree | 30a7e6df8cd22b5106ca9ba3193332be3b26d982 | |
parent | 4afc019229ba09e531a68bd669fc8e5ba99e98e3 (diff) | |
download | epq-web-342324809b8e79c8151f354e9a0bac9168cb231c.tar.gz epq-web-342324809b8e79c8151f354e9a0bac9168cb231c.tar.bz2 epq-web-342324809b8e79c8151f354e9a0bac9168cb231c.zip |
purged redundant code and library imports
-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 />); |