Skip to content

Commit d6ed6ba

Browse files
committed
feat(NavigationTree): add index and index_table node types!
1 parent 625eb62 commit d6ed6ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/NavigationTree/NavigationTreeNode.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ function renderIcon(type: NavigationTreeNodeType | string, collapsed: boolean) {
2424
case 'database':
2525
return <DatabaseIcon height={14} />;
2626
case 'directory':
27+
case 'index':
2728
return collapsed ? <FolderIcon height={14} /> : <FolderOpenIcon height={14} />;
2829
case 'table':
30+
case 'index_table':
2931
return <TableIcon height={14} />;
3032
default:
3133
return null;

src/components/NavigationTree/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {DropdownMenuItemMixed} from '@yandex-cloud/uikit';
22

3-
export type NavigationTreeNodeType = 'database' | 'directory' | 'table';
3+
export type NavigationTreeNodeType = 'database' | 'directory' | 'table' | 'index_table' | 'index';
44

55
export interface NavigationTreeDataItem {
66
name: string;

0 commit comments

Comments
 (0)