Skip to content

Commit 3581b38

Browse files
committed
docs(NavigationTree): showcase all node types
1 parent 909b560 commit 3581b38

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

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

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,18 @@ async function fetchPath(path: string) {
7272
{
7373
name: 'table_1',
7474
type: 'table',
75+
expandable: true,
7576
},
7677
{
7778
name: 'table_2',
78-
type: 'table',
79+
type: 'column_table',
7980
},
8081
{
8182
name: 'table_3',
83+
type: 'topic',
84+
},
85+
{
86+
name: 'table_4',
8287
type: 'table',
8388
},
8489
];
@@ -96,7 +101,7 @@ async function fetchPath(path: string) {
96101
items = [
97102
{
98103
name: 'table_3_1',
99-
type: 'table',
104+
type: 'index',
100105
},
101106
{
102107
name: 'table_3_2',
@@ -109,6 +114,25 @@ async function fetchPath(path: string) {
109114
];
110115
}
111116

117+
if (path === '/table_1') {
118+
items = [
119+
{
120+
name: 'table_1_index',
121+
type: 'index',
122+
expandable: true,
123+
},
124+
];
125+
}
126+
127+
if (path === '/table_1/table_1_index') {
128+
items = [
129+
{
130+
name: 'table_1_index_impl',
131+
type: 'index_table',
132+
},
133+
];
134+
}
135+
112136
return items;
113137
}
114138

0 commit comments

Comments
 (0)