File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,10 @@ const ROOT_CSS = css({
1313
1414export default props =>
1515 < Composer >
16- < Context >
17- { context =>
18- < div className = { classNames ( ROOT_CSS + '' , props . className ) } >
19- < Panel >
20- { props . children }
21- </ Panel >
22- < AutoHideFollowButton className = { props . followButtonClassName } />
23- </ div >
24- }
25- </ Context >
16+ < div className = { classNames ( ROOT_CSS + '' , props . className ) } >
17+ < Panel >
18+ { props . children }
19+ </ Panel >
20+ < AutoHideFollowButton className = { props . followButtonClassName } />
21+ </ div >
2622 </ Composer >
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ export default class ScrollToBottomComposer extends React.Component {
2020 } ) ) ,
2121 scrollTop : null ,
2222 setTarget : target => this . setState ( ( ) => ( { target } ) ) ,
23- target : null ,
23+ target : null
2424 } ;
2525 }
2626
2727 handleScroll ( ) {
28- this . setState ( ( ) => {
29- const { target } = this . state ;
30-
28+ this . setState ( ( { target } ) => {
3129 if ( target ) {
3230 const { offsetHeight, scrollHeight, scrollTop } = target ;
3331 const bottom = scrollHeight - scrollTop - offsetHeight <= this . props . threshold ;
You can’t perform that action at this time.
0 commit comments