NTP-35446 | audio upload | aman singh (#1376)

This commit is contained in:
Aman Singh
2025-02-06 18:42:45 +05:30
committed by GitHub
parent e347188016
commit 21247415ba

View File

@@ -9,7 +9,6 @@ import { FILE_STATUS } from '../../AmeyoUtility/types';
import { fetchFailureReport, fetchOriginalFile } from './uploadHistoryDrawerActions';
import dayjs from 'dayjs';
import { DateTimeFormat } from '@cp/src/components/DateTimePicker/constants';
import { AgencyAllocationType } from '../../AllAgents/UploadHistory/types.ts/types';
const SET_DUMMY_TRUE = true;
@@ -118,9 +117,6 @@ export const useColumnDefs = (): {
headerComponentParams: { width: 100 },
cellRenderer: (params: ICellRendererParams) => {
const { data } = params;
const showOriginalFile =
data?.type === AgencyAllocationType.Allocate ||
data?.type === AgencyAllocationType.Deallocate;
const textColor =
data?.uploadStatus ===
(FILE_STATUS.INPROGRESS || data?.uploadStatus === FILE_STATUS.INITIATED)
@@ -143,7 +139,8 @@ export const useColumnDefs = (): {
data?.uploadStatus === FILE_STATUS.INITIATED
? 'auto'
: 'pointer';
return data?.jobData?.filename || showOriginalFile ? (
return (
<Button
variant="text"
className={styles.buttonWrapper}
@@ -158,10 +155,6 @@ export const useColumnDefs = (): {
: 'In Progress'}
</span>
</Button>
) : (
<Typography variant="p4" color="var(--grayscale-2)">
-
</Typography>
);
}
},