Skip to content

Commit fafefe3

Browse files
Fix bugs
1 parent e835dbb commit fafefe3

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

src/components/PDiskPopup/PDiskPopup.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import {Flex, Label, Progress} from '@gravity-ui/uikit';
3+
import {Flex, Label} from '@gravity-ui/uikit';
44
import {isNil} from 'lodash';
55

66
import {selectNodesMap} from '../../store/reducers/nodesList';
@@ -54,16 +54,7 @@ export const preparePDiskData = (data: PreparedPDisk, nodeData?: {Host?: string;
5454
if (isNumeric(TotalSize) && isNumeric(AvailableSize)) {
5555
pdiskData.push({
5656
name: pDiskPopupKeyset('label_available'),
57-
content: (
58-
<React.Fragment>
59-
<Progress
60-
theme="success"
61-
size="s"
62-
value={Math.min(Math.max((AvailableSize / TotalSize) * 100, 0), 100)}
63-
/>
64-
<span>{`${bytesToGB(AvailableSize)} ${pDiskPopupKeyset('value_of')} ${bytesToGB(TotalSize)}`}</span>
65-
</React.Fragment>
66-
),
57+
content: `${bytesToGB(AvailableSize)} ${pDiskPopupKeyset('value_of')} ${bytesToGB(TotalSize)}`,
6758
});
6859
}
6960

src/components/VDisk/VDisk.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,4 @@
66

77
border-radius: 4px; // to match interactive area with disk shape
88
}
9-
10-
&__vdisk-icon {
11-
position: absolute;
12-
top: 3px;
13-
left: 4px;
14-
}
159
}

0 commit comments

Comments
 (0)