Skip to content

Commit 0364eef

Browse files
fix: review
1 parent 1923a1b commit 0364eef

File tree

6 files changed

+6
-19
lines changed

6 files changed

+6
-19
lines changed

src/containers/Clusters/Clusters.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@
8080
color: var(--g-color-text-secondary);
8181
}
8282

83-
&__remove-cluster {
84-
color: var(--ydb-color-status-red);
85-
}
86-
8783
&__progress {
8884
--g-progress-filled-background-color: var(--ydb-color-status-green);
8985
}

src/containers/Clusters/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function getTitleColumn({isEditClusterAvailable, isDeleteClusterAvailable}: Clus
7979
action: () => {
8080
onDeleteCluster({clusterData: row});
8181
},
82-
className: b('remove-cluster'),
82+
theme: 'danger',
8383
});
8484
}
8585

src/containers/Header/Header.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,4 @@
3333
display: flex;
3434
align-items: center;
3535
}
36-
37-
&__remove-db {
38-
// !important to prevent color from .g-menu__item
39-
color: var(--ydb-color-status-red) !important;
40-
}
4136
}

src/containers/Header/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ function Header() {
121121

122122
const {onEditDB, onDeleteDB} = uiFactory;
123123

124-
const isEnoughtData = clusterName && databaseData;
124+
const isEnoughData = clusterName && databaseData;
125125

126-
if (isEditDBAvailable && onEditDB && isEnoughtData) {
126+
if (isEditDBAvailable && onEditDB && isEnoughData) {
127127
menuItems.push({
128128
text: headerKeyset('action_edit-db'),
129129
iconStart: <Pencil />,
@@ -132,7 +132,7 @@ function Header() {
132132
},
133133
});
134134
}
135-
if (isDeleteDBAvailable && onDeleteDB && isEnoughtData) {
135+
if (isDeleteDBAvailable && onDeleteDB && isEnoughData) {
136136
menuItems.push({
137137
text: headerKeyset('action_delete-db'),
138138
iconStart: <TrashBin />,
@@ -144,7 +144,7 @@ function Header() {
144144
}
145145
});
146146
},
147-
className: b('remove-db'),
147+
theme: 'danger',
148148
});
149149
}
150150

src/containers/Tenants/Tenants.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,4 @@
6565

6666
margin: 0 0 0 auto;
6767
}
68-
69-
&__remove-db {
70-
color: var(--ydb-color-status-red);
71-
}
7268
}

src/containers/Tenants/Tenants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function getDBActionsColumn({
374374
databaseData: row,
375375
});
376376
},
377-
className: b('remove-db'),
377+
theme: 'danger',
378378
});
379379
}
380380

0 commit comments

Comments
 (0)