Progress
This commit is contained in:
@@ -41,6 +41,10 @@ export default
|
||||
@injectIntl
|
||||
class ComposeForm extends ImmutablePureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object,
|
||||
}
|
||||
|
||||
state = {
|
||||
composeFocused: false,
|
||||
}
|
||||
|
||||
@@ -28,6 +28,9 @@ const mapStateToProps = (state, { replyToId, isStandalone }) => {
|
||||
|
||||
if (isModalOpen) isMatch = true
|
||||
|
||||
// console.log("isMatch:", isMatch, reduxReplyToId, replyToId, state.getIn(['compose', 'text']))
|
||||
// console.log("reduxReplyToId:", reduxReplyToId, isModalOpen, isStandalone)
|
||||
|
||||
if (!isMatch) {
|
||||
return {
|
||||
isMatch,
|
||||
@@ -81,10 +84,10 @@ const mapStateToProps = (state, { replyToId, isStandalone }) => {
|
||||
}
|
||||
}
|
||||
|
||||
const mapDispatchToProps = (dispatch, { reduxReplyToId, replyToId }) => ({
|
||||
const mapDispatchToProps = (dispatch, { reduxReplyToId, replyToId, isStandalone }) => ({
|
||||
|
||||
onChange(text, markdown, newReplyToId) {
|
||||
dispatch(changeCompose(text, markdown, newReplyToId))
|
||||
dispatch(changeCompose(text, markdown, newReplyToId, isStandalone))
|
||||
},
|
||||
|
||||
onSubmit(group, replyToId, router) {
|
||||
|
||||
@@ -71,7 +71,7 @@ class ListTimeline extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
handleEditClick = () => {
|
||||
console.log("handleEditClick:", this.props.params.id)
|
||||
// console.log("handleEditClick:", this.props.params.id)
|
||||
this.props.dispatch(openModal('LIST_EDITOR', { id: this.props.params.id }))
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ class Notifications extends ImmutablePureComponent {
|
||||
|
||||
// : todo : include follow requests
|
||||
|
||||
console.log('--0--notifications:', hasMore)
|
||||
// console.log('--0--notifications:', hasMore)
|
||||
|
||||
if (isLoading && this.scrollableContent) {
|
||||
scrollableContent = this.scrollableContent
|
||||
|
||||
@@ -37,7 +37,7 @@ class Search extends ImmutablePureComponent {
|
||||
const { results, location } = this.props
|
||||
const { isSmallScreen } = this.state
|
||||
|
||||
console.log("results:", results)
|
||||
// console.log("results:", results)
|
||||
|
||||
if (results.isEmpty() && isSmallScreen) {
|
||||
return null
|
||||
|
||||
@@ -146,7 +146,7 @@ class SwitchingArea extends PureComponent {
|
||||
<Redirect from='/' to='/home' exact />
|
||||
<WrappedRoute path='/home' exact page={HomePage} component={HomeTimeline} content={children} />
|
||||
|
||||
<WrappedRoute path='/compose' exact page={BasicPage} component={Compose} content={children} componentParams={{ title: 'Gab' }} />
|
||||
<WrappedRoute path='/compose' exact page={BasicPage} component={Compose} content={children} componentParams={{ title: 'Compose' }} />
|
||||
|
||||
<WrappedRoute path='/timeline/all' exact page={CommunityPage} component={CommunityTimeline} content={children} componentParams={{ title: 'Community Feed' }} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user