Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 4b82eb0

Browse files
committed
refactor: clean up
1 parent a32bce8 commit 4b82eb0

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

containers/CommunityBanner/styles/digest_view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const LogoWrapper = styled.div`
3636
margin-top: ${({ raw }) => (raw === 'home' ? '-14px' : 0)};
3737
@media (max-height: 800px) {
3838
width: 50px;
39+
margin-top: ${({ raw }) => (raw === 'home' ? '-8px' : 0)};
3940
}
4041
`
4142
export const CommunityLogo = styled(Img)`

containers/PostsThread/logic.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import {
1313
THREAD,
1414
$solver,
1515
scrollIntoEle,
16-
// closePreviewer,
17-
// GA,
1816
} from '../../utils'
1917

2018
import S from './schema'
@@ -36,7 +34,12 @@ let store = null
3634
let sub$ = null
3735

3836
// TODO: move to utils
39-
const validFilter = R.pickBy(R.compose(R.not, R.isEmpty))
37+
const validFilter = R.pickBy(
38+
R.compose(
39+
R.not,
40+
R.isEmpty
41+
)
42+
)
4043

4144
export const inAnchor = () => store.setHeaderFix(false)
4245
export const outAnchor = () => store.setHeaderFix(true)
@@ -184,7 +187,7 @@ const ErrSolver = [
184187

185188
export function init(_store) {
186189
debug('======== init')
187-
// closePreviewer()
190+
188191
store = _store
189192
if (sub$) return false // sub$.unsubscribe()
190193
sub$ = sr71$.data().subscribe($solver(DataSolver, ErrSolver))

pages/community.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,15 @@ export default class PageCommunity extends React.Component {
131131
isValidSession: sessionState.isValid,
132132
userSubscribedCommunities: subscribedCommunities,
133133
},
134-
viewing: { community, activeThread: R.toLower(thread), post: {} },
134+
viewing: {
135+
community,
136+
activeThread: R.toLower(thread),
137+
post: {},
138+
job: {},
139+
video: {},
140+
repo: {},
141+
user: {},
142+
},
135143
route: { mainPath: community.raw, subPath },
136144
tagsBar: { tags: partialTags },
137145
},

0 commit comments

Comments
 (0)