Use proper buildLog variable for download button

This commit is contained in:
2025-01-06 15:37:47 -06:00
parent b22d92dfb3
commit eed66f96d7

View File

@@ -12,7 +12,7 @@ type DemoProps = {
const Demo = ({ class: className }: DemoProps) => { const Demo = ({ class: className }: DemoProps) => {
const audioRef = useRef<HTMLAudioElement | null>(null); const audioRef = useRef<HTMLAudioElement | null>(null);
const { id, downloads, executables, deleteDownload } = useSocket({ const { id, downloads, executables, deleteDownload, buildLog } = useSocket({
notify: (token) => { notify: (token) => {
audioRef.current!.play(); audioRef.current!.play();
highlight(token); highlight(token);
@@ -66,7 +66,7 @@ const Demo = ({ class: className }: DemoProps) => {
<DownloadButton <DownloadButton
key="download" key="download"
disabled={executables == null} disabled={executables == null}
buildLog={"https://railway.com"} buildLog={buildLog}
executables={executables} executables={executables}
/> />
{downloads?.map((download, i) => ( {downloads?.map((download, i) => (