@@ -12,7 +12,7 @@ import { CircularProgress } from '@mui/material';
1212import { crmPreviewModalState } from '@/shared/state/crmPreviewModal/state' ;
1313import { PrintOrderEntity } from '@/entities/order' ;
1414import { ConsultationEntity } from '@/entities/consultation' ;
15- import { getFileName } from '../../api/utils ' ;
15+ import { Cell } from '../Cell ' ;
1616import s from './style.module.scss' ;
1717
1818export const TableBody = observer ( ( ) => {
@@ -37,20 +37,13 @@ export const TableBody = observer(() => {
3737 key = { i . id }
3838 className = { s . containerRow }
3939 >
40- { orderTypeColumns . filter ( hideNotvisible ) . map ( ( value ) => {
41- if ( value . key === 'file_path' ) {
42- return (
43- < div key = { value . key } className = { s . cell } >
44- { getFileName ( get ( i , value . key , '' ) || '' ) }
45- </ div >
46- ) ;
47- }
48- return (
49- < div key = { value . key } className = { s . cell } >
50- { get ( i , value . key , '-' ) }
51- </ div >
52- ) ;
53- } ) }
40+ { orderTypeColumns . filter ( hideNotvisible ) . map ( ( value ) => (
41+ < Cell
42+ key = { value . key }
43+ path = { value . key }
44+ value = { get ( i , value . key , '---' ) }
45+ />
46+ ) ) }
5447 </ button >
5548 ) ) }
5649 { pending ? (
@@ -73,9 +66,11 @@ export const TableBody = observer(() => {
7366 className = { s . containerRow }
7467 >
7568 { consultationTypeColumns . filter ( hideNotvisible ) . map ( ( value ) => (
76- < div key = { value . key } className = { s . cell } >
77- { get ( i , value . key , '-' ) }
78- </ div >
69+ < Cell
70+ key = { value . key }
71+ path = { value . key }
72+ value = { get ( i , value . key , '-' ) }
73+ />
7974 ) ) }
8075 </ button >
8176 ) ) }
0 commit comments