Skip to content

Commit

Permalink
Merge branch 'main' into chore/add-storybook-ci-option-to-test-start-…
Browse files Browse the repository at this point in the history
…storybook-ok
  • Loading branch information
virtuoushub committed Nov 2, 2021
2 parents 8f87ac8 + 31ef9cd commit 35f1282
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions packages/router/src/splash-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,24 +326,27 @@ const SplashPage: React.VFC<SplashPageProps> = ({
<div className="pages">
<p className="pages-title">List of Pages by path:</p>
<ul className="pages-list">
{routes.map((route) => {
if (!route.props.notfound) {
return (
<li key={route.key} className="pages-item">
<code>
{`${route.props.name} -> `}
<a
href={route.props.path}
target="_blank"
rel="noreferrer"
>
{route.props.path}
</a>
</code>
</li>
)
{routes.map((route, index) => {
if (
route.type.name !== 'Route' ||
route.props.notfound
) {
return
}
return <div key={route.key}></div>
return (
<li key={index} className="pages-item">
<code>
{`${route.props.name} -> `}
<a
href={route.props.path}
target="_blank"
rel="noreferrer"
>
{route.props.path}
</a>
</code>
</li>
)
})}
</ul>
</div>
Expand Down

0 comments on commit 35f1282

Please sign in to comment.