diff --git a/frontend/src/components/Demo.tsx b/frontend/src/components/Demo.tsx index 51adc2c..b122fc6 100644 --- a/frontend/src/components/Demo.tsx +++ b/frontend/src/components/Demo.tsx @@ -69,7 +69,6 @@ const Demo = ({ class: className }: DemoProps) => { {download} ))} - download

diff --git a/frontend/src/components/useSocket.ts b/frontend/src/components/useSocket.ts index 897b5cf..b1926aa 100644 --- a/frontend/src/components/useSocket.ts +++ b/frontend/src/components/useSocket.ts @@ -7,8 +7,15 @@ interface Download { download_time: string; } +interface Executable { + id: string; + name: string; + size: number; +} + interface UseSocketResult { id: string | null; + executables: Executable[]; downloads: Download[] | null; deleteDownload: (id: string) => void; } @@ -16,6 +23,7 @@ interface UseSocketResult { function useSocket(): UseSocketResult { const [id, setId] = useState(null); const [downloads, setDownloads] = useState(null); + const [executables, setExecutables] = useState(null); function deleteDownload() {}