mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-07 18:06:55 -06:00
Use proper buildLog variable for download button
This commit is contained in:
@@ -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) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user