Skip to content

Commit 270f607

Browse files
authored
fix(NavigationTree): add new NavigationTreeNodeType 'stream' (#57)
1 parent d462aaf commit 270f607

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/components/NavigationTree/NavigationTreeNode.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function renderIcon(type: NavigationTreeNodeType | string, collapsed: boolean) {
4242
return <TableIcon height={16} />;
4343
case 'column_table':
4444
return <ColumnTableIcon height={16} />;
45+
case 'stream':
4546
case 'topic':
4647
return <TopicIcon height={16} />;
4748
case 'external_table':

src/components/NavigationTree/__stories__/NavigationTree.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ async function fetchPath(path: string) {
131131
type: 'index',
132132
expandable: true,
133133
},
134+
{
135+
name: 'stream',
136+
type: 'stream',
137+
},
134138
];
135139
}
136140

src/components/NavigationTree/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type NavigationTreeNodeType =
88
| 'index_table'
99
| 'index'
1010
| 'topic'
11+
| 'stream'
1112
| 'external_table'
1213
| 'external_data_source';
1314

0 commit comments

Comments
 (0)