Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b87aab

Browse files
committed
fix url
1 parent42c4683 commit6b87aab

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

‎src/layout/layout.component.tsx‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ function getPageType(pathName: string) {
1313
switch(pathName){
1414
case'/':
1515
return'top'
16-
case'/new':
16+
case'/dob-react-hackernews':
17+
return'top'
18+
case'/dob-react-hackernews/new':
1719
return'new'
18-
case'/show':
20+
case'/dob-react-hackernews/show':
1921
return'show'
20-
case'/ask':
22+
case'/dob-react-hackernews/ask':
2123
return'ask'
22-
case'/jobs':
24+
case'/dob-react-hackernews/jobs':
2325
return'jobs'
2426
default:
2527
returnnull
@@ -56,11 +58,11 @@ export default class Layout extends PureComponent<Props, State> {
5658
<Linkto="/">
5759
<S.Logosrc="https://avatars1.githubusercontent.com/u/32093464?s=200&v=4"/>
5860
</Link>
59-
<Linkto="/"className={classnames({active:this.props.location.pathname==='/'})}>top</Link>
60-
<Linkto="/new"className={classnames({active:this.props.location.pathname==='/new'})}>new</Link>
61-
<Linkto="/show"className={classnames({active:this.props.location.pathname==='/show'})}>show</Link>
62-
<Linkto="/ask"className={classnames({active:this.props.location.pathname==='/ask'})}>ask</Link>
63-
<Linkto="/jobs"className={classnames({active:this.props.location.pathname==='/jobs'})}>jobs</Link>
61+
<Linkto="/"className={classnames({active:this.props.location.pathname==='/dob-react-hackernews'})}>top</Link>
62+
<Linkto="/new"className={classnames({active:this.props.location.pathname==='/dob-react-hackernews/new'})}>new</Link>
63+
<Linkto="/show"className={classnames({active:this.props.location.pathname==='/dob-react-hackernews/show'})}>show</Link>
64+
<Linkto="/ask"className={classnames({active:this.props.location.pathname==='/dob-react-hackernews/ask'})}>ask</Link>
65+
<Linkto="/jobs"className={classnames({active:this.props.location.pathname==='/dob-react-hackernews/jobs'})}>jobs</Link>
6466
</S.NavLeft>
6567

6668
<S.NavRight>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp