ISSUE-001 - Playing around quite a bit. Not sure I've figured out a method of constructing the tool page I'm happy with here. Want to take a different path and see what I can do.
This commit is contained in:
1 parent
c6f5899510
commit
c3b268da61
22 files changed
+412
-33
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
|
||||
import { FullScreenContainer } from "./styles";
|
||||
import { Layout } from "../components/Broadcast/Layout";
|
||||
import { RouteHeader } from "../components/Common/RouteHeader";
|
||||
|
||||
export default function Broadcast() {
|
||||
const [height, setHeight] = useState(0);
|
||||
const ref = useRef < HTMLHeadElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (ref?.current != null)
|
||||
setHeight(ref.current.clientHeight);
|
||||
});
|
||||
|
||||
return (
|
||||
<FullScreenContainer>
|
||||
<RouteHeader ref={ref} title="Broadcast Page" />
|
||||
<Layout headerHeight={height} />
|
||||
</FullScreenContainer>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user