mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-13 01:43:29 +02:00
prettier plus updates to the header entry. Stream gets iframe page instead of redirect
This commit is contained in:
@@ -2,13 +2,17 @@ import "./App.css";
|
||||
|
||||
import Layout from "./components/Layout";
|
||||
import Home from "./pages/Home";
|
||||
import Stream from "./pages/Stream";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Layout>
|
||||
<Home />
|
||||
</Layout>
|
||||
);
|
||||
const path = window.location.pathname.toLowerCase();
|
||||
|
||||
let content = <Home />;
|
||||
if (path === "/stream") {
|
||||
content = <Stream />;
|
||||
}
|
||||
|
||||
return <Layout>{content}</Layout>;
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user