From dd4bf31612be09764028d761f8985bdd64c8bd93 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Thu, 2 Mar 2023 00:20:23 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fixes=20for=20DOMNesting=20issue?= =?UTF-8?q?s=20on=20the=20Downloads=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rishi Ghan --- src/client/components/Downloads/Downloads.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/client/components/Downloads/Downloads.tsx b/src/client/components/Downloads/Downloads.tsx index 7481340..a18eafe 100644 --- a/src/client/components/Downloads/Downloads.tsx +++ b/src/client/components/Downloads/Downloads.tsx @@ -3,7 +3,6 @@ import { getTransfers } from "../../actions/airdcpp.actions"; import { useDispatch, useSelector } from "react-redux"; import { AirDCPPSocketContext } from "../../context/AirDCPPSocket"; import { isEmpty, isNil, isUndefined } from "lodash"; -import { searchIssue } from "../../actions/fileops.actions"; import { determineCoverFile } from "../../shared/utils/metadata.utils"; import MetadataPanel from "../shared/MetadataPanel"; @@ -47,7 +46,6 @@ export const Downloads = (props: IDownloadsProps): ReactElement => { }) setBundles(foo); } - }, [issueBundles]) return !isNil(bundles) ? @@ -56,9 +54,9 @@ export const Downloads = (props: IDownloadsProps): ReactElement => {

Downloads

- {bundles.map(bundle => { + {bundles.map((bundle, idx) => { console.log(bundle); - return <> + return
{ margin: "0 0 8px 0", }} /> - +
+ - - {bundle.acquisition.directconnect.downloads.map((bundle) => { - return( + + + {bundle.acquisition.directconnect.downloads.map((bundle, idx) => { + return () })} -
Name Size Type Bundle ID
{bundle.name} {bundle.size} {bundle.type.str} {bundle.bundleId}
+ + {/*
{JSON.stringify(bundle.acquisition.directconnect.downloads, null, 2)}
*/} - +
})}
- :
asd
; + :
There are no downloads.
; }; export default Downloads;