re-introduce router

This commit is contained in:
Brandon Thomas committed 2022-02-27 05:04:14 -05:00
1 parent 8aaae344bc
commit 1fe1f68de8
2 files changed
+6 -6

No files matched your search

+5 -6
View File
@@ -1,18 +1,17 @@
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import { ObsLayerPage } from './pages/obs-layer/ObsLayerPage';
interface Props {
}
function App (props: Props) {
function App () {
return (
<div id="main" className="mainwrap">
<div id="viewable">
<BrowserRouter>
<ObsLayerPage />
<Route path="/twitch/:username">
<ObsLayerPage />
</Route>
</BrowserRouter>
</div>
</div>
@@ -168,6 +168,7 @@ function ObsLayerPage() {
<h1 className="title">
Paste this page's URL into OBS
</h1>
<h1 className="subtitle">Twitch Username : {username}</h1>
</div>
</section>
</div>