mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 07:04:36 +00:00
re-introduce router
This commit is contained in:
1 parent
8aaae344bc
commit
1fe1f68de8
2 files changed
+6
-6
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user