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
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit92e6076

Browse files
committed
chore: clean up
1 parentca70e61 commit92e6076

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

‎containers/Sidebar/logic.js‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importRfrom'ramda'
2-
importRouterfrom'next/router'
32
/* import store from 'store' */
43

54
// const debug = makeDebugger('L:sidebar')
@@ -35,20 +34,12 @@ export const pin = () => store.markState({ pin: !store.pin })
3534
exportfunctionextendMenuBar(communityRaw){
3635
switch(communityRaw){
3736
caseROUTE.COMMUNITIES:{
38-
returnRouter.push({
39-
pathname:`/${ROUTE.COMMUNITIES}`,
40-
asPath:`/${communityRaw}/`,
41-
})
37+
returnstore.markRoute({mainPath:ROUTE.COMMUNITIES,subPath:'index'})
4238
}
4339
caseROUTE.USERS:{
44-
returnRouter.push(`/${ROUTE.USERS}`,`/${communityRaw}/`)
40+
returnstore.markRoute({mainPath:ROUTE.USERS,subPath:'index'})
4541
}
4642
default:{
47-
/*
48-
const asPath = `/${communityRaw}/${ROUTE.POSTS}`
49-
Router.push('/', asPath)
50-
*/
51-
5243
onRootMenuSelect(communityRaw,ROUTE.POSTS)
5344
returnloadCommunity(communityRaw)
5445
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp