Skip to content

Commit b960d4d

Browse files
fix(NewSQL): use the same icons as in schema tree (#2948)
1 parent adc051b commit b960d4d

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"use-query-params": "^2.2.1",
6060
"uuid": "^10.0.0",
6161
"web-vitals": "^1.1.2",
62-
"ydb-ui-components": "^5.1.1",
62+
"ydb-ui-components": "^5.2.0",
6363
"zod": "^3.24.1"
6464
},
6565
"scripts": {

src/containers/Tenant/Query/NewSQL/NewSQL.tsx

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

3-
import {
4-
ArrowsOppositeToDots,
5-
ChevronDown,
6-
FileArrowRightOut,
7-
FileText,
8-
LayoutHeaderCells,
9-
PencilToSquare,
10-
Persons,
11-
} from '@gravity-ui/icons';
3+
import {ChevronDown, Persons} from '@gravity-ui/icons';
124
import type {DropdownMenuItem} from '@gravity-ui/uikit';
135
import {Button, DropdownMenu} from '@gravity-ui/uikit';
6+
import {AsyncReplicationIcon, TableIcon, TopicIcon, TransferIcon} from 'ydb-ui-components';
147

158
import {useChangeInputWithConfirmation} from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
169
import {insertSnippetToEditor} from '../../../../utils/monaco/insertSnippet';
@@ -30,7 +23,7 @@ export function NewSQL() {
3023
const items: DropdownMenuItem[] = [
3124
{
3225
text: i18n('menu.tables'),
33-
iconStart: <LayoutHeaderCells />,
26+
iconStart: <TableIcon />,
3427
items: [
3528
{
3629
text: i18n('action.create-row-table'),
@@ -84,7 +77,7 @@ export function NewSQL() {
8477
},
8578
{
8679
text: i18n('menu.topics'),
87-
iconStart: <FileText />,
80+
iconStart: <TopicIcon />,
8881
items: [
8982
{
9083
text: i18n('action.create-topic'),
@@ -102,7 +95,7 @@ export function NewSQL() {
10295
},
10396
{
10497
text: i18n('menu.replication'),
105-
iconStart: <ArrowsOppositeToDots />,
98+
iconStart: <AsyncReplicationIcon />,
10699
items: [
107100
{
108101
text: i18n('action.create-async-replication'),
@@ -120,7 +113,7 @@ export function NewSQL() {
120113
},
121114
{
122115
text: i18n('menu.transfer'),
123-
iconStart: <FileArrowRightOut />,
116+
iconStart: <TransferIcon />,
124117
items: [
125118
{
126119
text: i18n('action.create-transfer'),
@@ -138,7 +131,7 @@ export function NewSQL() {
138131
},
139132
{
140133
text: i18n('menu.capture'),
141-
iconStart: <PencilToSquare />,
134+
iconStart: <TopicIcon />,
142135
items: [
143136
{
144137
text: i18n('action.create-cdc-stream'),

0 commit comments

Comments
 (0)