Skip to content

Commit

Permalink
fix(NavigationTree): add new NavigationTreeNodeType 'stream' (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
krosy1337 authored Aug 9, 2023
1 parent d462aaf commit 270f607
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NavigationTree/NavigationTreeNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function renderIcon(type: NavigationTreeNodeType | string, collapsed: boolean) {
return <TableIcon height={16} />;
case 'column_table':
return <ColumnTableIcon height={16} />;
case 'stream':
case 'topic':
return <TopicIcon height={16} />;
case 'external_table':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ async function fetchPath(path: string) {
type: 'index',
expandable: true,
},
{
name: 'stream',
type: 'stream',
},
];
}

Expand Down
1 change: 1 addition & 0 deletions src/components/NavigationTree/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NavigationTreeNodeType =
| 'index_table'
| 'index'
| 'topic'
| 'stream'
| 'external_table'
| 'external_data_source';

Expand Down

0 comments on commit 270f607

Please sign in to comment.