diff --git a/package-lock.json b/package-lock.json index 6dbb06c..dbf056d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ts5-obs-overlay", - "version": "1.3.1", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ts5-obs-overlay", - "version": "1.3.1", + "version": "2.0.0", "dependencies": { "@types/node": "^20.8.3", "react": "^18.2.0", diff --git a/src/App.tsx b/src/App.tsx index 363f6bc..d9ceb0b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import "@styles/App.scss"; -import { useSearchParams } from "react-router-dom"; +import { Route, Routes, useSearchParams } from "react-router-dom"; import useTSRemoteApp, { IClient } from "react-ts5-remote-app-api"; import Viewer from "./Viewer"; @@ -18,20 +18,25 @@ export default function App() { }); return ( -
- { - if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) { - return client; + + { + if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) { + return client; + } + }) as IClient[] } - }) as IClient[] + channel={currentChannel} + /> } - channel={currentChannel} /> -
+ ); } diff --git a/src/main.tsx b/src/main.tsx index 6c51dfd..8eedfe1 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,10 +1,10 @@ import React from "react"; import ReactDOM from "react-dom/client"; -import { BrowserRouter } from "react-router-dom"; import App from "./App.tsx"; import "@styles/index.scss"; +import { BrowserRouter } from "react-router-dom"; -ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( +ReactDOM.createRoot(document.getElementById("root")!).render( diff --git a/tsconfig.json b/tsconfig.json index 3c884bd..0587ded 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ /* Bundler mode */ "moduleResolution": "Node", + "allowSyntheticDefaultImports": true, "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true,