mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-06 01:14:55 -06:00
Remove unused download badge, add Executable types to useSocket
This commit is contained in:
@@ -69,7 +69,6 @@ const Demo = ({ class: className }: DemoProps) => {
|
|||||||
{download}
|
{download}
|
||||||
</Badge>
|
</Badge>
|
||||||
))}
|
))}
|
||||||
<Badge>download</Badge>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4 p-2 bg-zinc-900/90 rounded-md border border-zinc-700">
|
<div class="mt-4 p-2 bg-zinc-900/90 rounded-md border border-zinc-700">
|
||||||
<p class="my-0">
|
<p class="my-0">
|
||||||
|
|||||||
@@ -7,8 +7,15 @@ interface Download {
|
|||||||
download_time: string;
|
download_time: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Executable {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
size: number;
|
||||||
|
}
|
||||||
|
|
||||||
interface UseSocketResult {
|
interface UseSocketResult {
|
||||||
id: string | null;
|
id: string | null;
|
||||||
|
executables: Executable[];
|
||||||
downloads: Download[] | null;
|
downloads: Download[] | null;
|
||||||
deleteDownload: (id: string) => void;
|
deleteDownload: (id: string) => void;
|
||||||
}
|
}
|
||||||
@@ -16,6 +23,7 @@ interface UseSocketResult {
|
|||||||
function useSocket(): UseSocketResult {
|
function useSocket(): UseSocketResult {
|
||||||
const [id, setId] = useState<string | null>(null);
|
const [id, setId] = useState<string | null>(null);
|
||||||
const [downloads, setDownloads] = useState<Download[] | null>(null);
|
const [downloads, setDownloads] = useState<Download[] | null>(null);
|
||||||
|
const [executables, setExecutables] = useState<string | null>(null);
|
||||||
|
|
||||||
function deleteDownload() {}
|
function deleteDownload() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user