diff --git a/src/client/components/ComicDetail/AcquisitionPanel.tsx b/src/client/components/ComicDetail/AcquisitionPanel.tsx index 8687a03..88c24d4 100644 --- a/src/client/components/ComicDetail/AcquisitionPanel.tsx +++ b/src/client/components/ComicDetail/AcquisitionPanel.tsx @@ -35,8 +35,14 @@ export const AcquisitionPanel = ( priority: PriorityEnum; } interface SearchResult { - id: number; + id: string; // Add other properties as needed + slots: any; + type: any; + users: any; + name: string; + dupe: Boolean; + size: number; } const handleSearch = (searchQuery) => { @@ -122,7 +128,6 @@ export const AcquisitionPanel = ( }; socketIOInstance.on("searchResultAdded", ({ result }: any) => { - console.log("yelaweda", result); setAirDCPPSearchResults((previousState) => { const exists = previousState.some( (item) => result.id === item.id, @@ -135,7 +140,6 @@ export const AcquisitionPanel = ( }); socketIOInstance.on("searchResultUpdated", ({ result }: any) => { - console.log("endh", result); // ...update properties of the existing result in the UI const bundleToUpdateIndex = airDCPPSearchResults?.findIndex( (bundle) => bundle.id === result.id, @@ -201,141 +205,7 @@ export const AcquisitionPanel = ( search(manualQuery); }; - console.log(airDCPPSearchResults); - // const comment = `
| - // Name - // | - //- // Type - // | - //- // Slots - // | - //- // Actions - // | - //
|---|---|---|---|
|
- // - // {result.type.id === "directory" ? ( - // - // ) : null} - // {ellipsize(result.name, 70)} - // - // - //
|
- // - // {/* Extension */} - // - // - // - // - // - // - // {result.type.str} - // - // - // | - //- // {/* Slots */} - // - // - // - // - // - // - // {result.slots.total} slots; {result.slots.free} free - // - // - // | - //- // - // | - //
| + Name + | ++ Type + | ++ Slots + | ++ Actions + | +
|---|---|---|---|
|
+ + {type.id === "directory" ? ( + + ) : null} + {ellipsize(name, 70)} + + +
|
+ + {/* Extension */} + + + + + + + {type.str} + + + | ++ {/* Slots */} + + + + + + + {slots.total} slots; {slots.free} free + + + | ++ + | +