test(ts): add types

This commit is contained in:
moklick
2022-09-13 14:52:51 +02:00
parent 1da2630167
commit 132886f5e9
5 changed files with 68 additions and 62 deletions
+5 -1
View File
@@ -103,6 +103,10 @@ const routes = [
path: '/nodetypesobject-change',
component: NodeTypesObjectChange,
},
{
path: '/overview',
component: Overview,
},
{
path: '/provider',
component: Provider,
@@ -174,7 +178,7 @@ const Header = () => {
<select defaultValue={location.pathname} onChange={onChange}>
{routes.map((route) => (
<option value={route.path} key={route.path}>
{route.path === '/' ? 'overview' : route.path.substring(1, route.path.length)}
{route.path === '/' ? 'basic' : route.path.substring(1, route.path.length)}
</option>
))}
</select>