mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-05 23:14:53 -06:00
Remove extra type, fix deleteDownload type for useSocket
This commit is contained in:
@@ -8,11 +8,6 @@ type DemoProps = {
|
||||
class?: ClassValue;
|
||||
};
|
||||
|
||||
type SessionData = {
|
||||
id: string;
|
||||
downloads: string[];
|
||||
};
|
||||
|
||||
const Demo = ({ class: className }: DemoProps) => {
|
||||
const { id, downloads } = useSocket();
|
||||
// TODO: Toasts
|
||||
|
||||
@@ -17,7 +17,7 @@ interface UseSocketResult {
|
||||
id: number | null;
|
||||
executables: Executable[] | null;
|
||||
downloads: Download[] | null;
|
||||
deleteDownload: (id: string) => void;
|
||||
deleteDownload: (id: number) => void;
|
||||
}
|
||||
|
||||
function useSocket(): UseSocketResult {
|
||||
|
||||
Reference in New Issue
Block a user