Skip to content

Commit bba5ae8

Browse files
committed
feat(VDisk): display label for donors
1 parent 107b139 commit bba5ae8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/containers/Storage/Vdisk/Vdisk.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useEffect, useState, useRef, useMemo} from 'react';
22
import PropTypes from 'prop-types';
33
import cn from 'bem-cn-lite';
4-
import {Popup} from '@yandex-cloud/uikit';
4+
import {Label, Popup} from '@yandex-cloud/uikit';
55

66
import {bytesToGB, bytesToSpeed} from '../../../utils/utils';
77
import routes, {createHref} from '../../../routes';
@@ -202,6 +202,7 @@ function Vdisk(props) {
202202
// matches the default offset for popup with arrow out of a sense of beauty
203203
offset={[0, 12]}
204204
>
205+
{props.DonorMode && <Label className={b('donor-label')}>Donor</Label>}
205206
<InfoViewer
206207
title="VDisk"
207208
info={prepareVdiskData()}

src/containers/Storage/Vdisk/Vdisk.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
padding: 12px;
44

55
.info-viewer + .info-viewer {
6-
border-top: 1px solid var(--yc-color-line-generic);
7-
padding-top: 8px;
86
margin-top: 8px;
7+
padding-top: 8px;
8+
9+
border-top: 1px solid var(--yc-color-line-generic);
910
}
1011
}
12+
13+
&__donor-label {
14+
margin-bottom: 8px;
15+
}
1116
}

0 commit comments

Comments
 (0)