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 8, 2022. It is now read-only.

Commit187f812

Browse files
committed
fix(c11n): theme set in settings page & header card scope
1 parent54efaad commit187f812

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎components/Navigator/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const debug = makeDebugger('c:Navigator:index')
1717

1818
constNavigator=({ curCommunity, layout, curRoute})=>{
1919
if(
20-
R.contains(curRoute.mainPath,[ROUTE.COMMUNITIES])||
20+
R.contains(curRoute.mainPath,[ROUTE.USER,ROUTE.COMMUNITIES])||
2121
R.contains(curRoute.subPath,[
2222
ROUTE.POST,
2323
ROUTE.JOB,

‎containers/UserSettings/logic.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import R from 'ramda'
22

3-
import{makeDebugger,$solver}from'utils'
3+
import{makeDebugger,$solver,dispatchEvent,EVENT}from'utils'
44
importSR71from'utils/async/sr71'
55

66
constsr71$=newSR71()
@@ -11,7 +11,10 @@ const debug = makeDebugger('L:UserSettings')
1111

1212
letstore=null
1313

14-
exportconstchangeTheme=theme=>store.changeTheme(theme)
14+
exportconstchangeTheme=theme=>{
15+
store.changeTheme(theme)
16+
dispatchEvent(EVENT.SET_C11N,{data:{ theme}})
17+
}
1518

1619
exportconstc11nOnChange=(part,e)=>
1720
store.updateC11N({[part]:e.target.value})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp