diff --git a/src/components/DataSubmissions/GenericTable.tsx b/src/components/DataSubmissions/GenericTable.tsx index 17170e56..5636394b 100644 --- a/src/components/DataSubmissions/GenericTable.tsx +++ b/src/components/DataSubmissions/GenericTable.tsx @@ -155,6 +155,7 @@ type Props = { defaultRowsPerPage?: number; paginationPlacement?: CSSProperties["justifyContent"]; containerProps?: TableContainerProps; + numRowsNoContent?: number; setItemKey?: (item: T, index: number) => string; onFetchData?: (params: FetchListing, force: boolean) => void; onOrderChange?: (order: Order) => void; @@ -172,6 +173,7 @@ const GenericTable = ({ defaultRowsPerPage = 10, paginationPlacement, containerProps, + numRowsNoContent = 10, setItemKey, onFetchData, onOrderChange, @@ -185,7 +187,6 @@ const GenericTable = ({ ); const [page, setPage] = useState(0); const [perPage, setPerPage] = useState(defaultRowsPerPage); - const numRowsNoContent = 10; useEffect(() => { fetchData(); diff --git a/src/content/dataSubmissions/FileListDialog.tsx b/src/content/dataSubmissions/FileListDialog.tsx index 1b2e2f96..ffd5e705 100644 --- a/src/content/dataSubmissions/FileListDialog.tsx +++ b/src/content/dataSubmissions/FileListDialog.tsx @@ -235,6 +235,8 @@ const FileListDialog = ({ defaultOrder="asc" defaultRowsPerPage={20} paginationPlacement="center" + noContentText="No files were uploaded." + numRowsNoContent={5} onFetchData={handleFetchBatchFiles} setItemKey={(item, idx) => `${idx}_${item.fileName}_${item.createdAt}`} containerProps={{ sx: tableContainerSx }} diff --git a/src/types/Submissions.d.ts b/src/types/Submissions.d.ts index bcf14f37..074374ce 100644 --- a/src/types/Submissions.d.ts +++ b/src/types/Submissions.d.ts @@ -73,6 +73,11 @@ type UploadResult = { fileName: string; succeeded: boolean; errors: string[]; + /** + * Applies to Data File uploads only. Indicates whether the file was skipped + * intentionally during the upload process. + */ + skipped?: boolean; }; type BatchFileInfo = {