@@ -6,11 +6,10 @@ import {PDiskPopup} from '../../../components/PDiskPopup/PDiskPopup';
66import { VDiskWithDonorsStack } from '../../../components/VDisk/VDiskWithDonorsStack' ;
77import routes , { createHref , getPDiskPagePath } from '../../../routes' ;
88import { useDiskPagesAvailable } from '../../../store/reducers/capabilities/hooks' ;
9- import type { TVDiskStateInfo } from '../../../types/api/vdisk' ;
109import { valueIsDefined } from '../../../utils' ;
1110import { cn } from '../../../utils/cn' ;
1211import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters' ;
13- import type { PreparedPDisk } from '../../../utils/disks/types' ;
12+ import type { PreparedPDisk , PreparedVDisk } from '../../../utils/disks/types' ;
1413import { STRUCTURE } from '../../Node/NodePages' ;
1514
1615import './PDisk.scss' ;
@@ -19,12 +18,13 @@ const b = cn('pdisk-storage');
1918
2019interface PDiskProps {
2120 data ?: PreparedPDisk ;
22- vDisks ?: TVDiskStateInfo [ ] ;
21+ vDisks ?: PreparedVDisk [ ] ;
2322 showPopup ?: boolean ;
2423 onShowPopup ?: VoidFunction ;
2524 onHidePopup ?: VoidFunction ;
2625 className ?: string ;
2726 progressBarClassName ?: string ;
27+ groupId ?: string ;
2828}
2929
3030export const PDisk = ( {
@@ -35,6 +35,7 @@ export const PDisk = ({
3535 onHidePopup,
3636 className,
3737 progressBarClassName,
38+ groupId,
3839} : PDiskProps ) => {
3940 const [ isPopupVisible , setIsPopupVisible ] = React . useState ( false ) ;
4041
@@ -75,8 +76,11 @@ export const PDisk = ({
7576 >
7677 < VDiskWithDonorsStack
7778 data = { vdisk }
78- compact = { true }
79+ faded = {
80+ groupId ? groupId !== vdisk . VDiskId ?. GroupID ?. toString ( ) : false
81+ }
7982 stackClassName = { b ( 'donors-stack' ) }
83+ compact
8084 />
8185 </ div >
8286 ) ;
0 commit comments