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 b9a6c70b..ffd5e705 100644 --- a/src/content/dataSubmissions/FileListDialog.tsx +++ b/src/content/dataSubmissions/FileListDialog.tsx @@ -122,16 +122,6 @@ const StyledFileName = styled(Typography)({ wordBreak: "break-all" }); -const StyledNoFiles = styled(Typography)({ - color: "#595959", - fontFamily: "'Nunito Sans', 'Rubik', sans-serif", - fontSize: "16px", - fontStyle: "normal", - fontWeight: "400", - marginTop: "8px", - marginBottom: "40px" -}); - const tableContainerSx: TableContainerProps["sx"] = { "& .MuiTableHead-root .MuiTableCell-root:first-of-type": { paddingLeft: "26px", @@ -237,22 +227,20 @@ const FileListDialog = ({ {`${batch?.fileCount || 0} FILES`} - {batch?.fileCount === 0 ? ( - No files were uploaded. - ) : ( - `${idx}_${item.fileName}_${item.createdAt}`} - containerProps={{ sx: tableContainerSx }} - /> - )} + `${idx}_${item.fileName}_${item.createdAt}`} + containerProps={{ sx: tableContainerSx }} + />