refactor: monorepo
This commit is contained in:
25
packages/website/src/test-pages/router.tsx
Normal file
25
packages/website/src/test-pages/router.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Route, Switch } from 'wouter'
|
||||
|
||||
import AsyncTestPage from './async-test'
|
||||
import ComplexTestPage from './complex-test'
|
||||
import ErrorTestPage from './error-test'
|
||||
import FormTestPage from './form-test'
|
||||
import IndexPage from './index'
|
||||
import ListTestPage from './list-test'
|
||||
import NavigationTestPage from './navigation-test'
|
||||
|
||||
export default function Router() {
|
||||
return (
|
||||
<>
|
||||
<Switch>
|
||||
<Route path="/form" component={FormTestPage} />
|
||||
<Route path="/navigation" component={NavigationTestPage} />
|
||||
<Route path="/list" component={ListTestPage} />
|
||||
<Route path="/complex" component={ComplexTestPage} />
|
||||
<Route path="/errors" component={ErrorTestPage} />
|
||||
<Route path="/async" component={AsyncTestPage} />
|
||||
<Route path="" component={IndexPage} />
|
||||
</Switch>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user