-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4659d49
commit d92f95c
Showing
9 changed files
with
976 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export const FF_MAX_CHARS_DEFAULT = 2000; | ||
export const FF_MAX_CHARS_IN_COMMENT = 2000; | ||
export const FF_MAX_CHARS_IN_DESCRIPTION = 5000; | ||
export const FF_MAX_CHARS_REPORT_CONTENT_DETAILS = 500; | ||
export const FF_MAX_CHARS_REPORT_CONTENT_ADDRESS = 255; | ||
export const FF_MAX_CHARS_REPORT_CONTENT_SHORT = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { connect } from 'react-redux'; | ||
import { doHideModal } from 'redux/actions/app'; | ||
import { doReportContent } from 'redux/actions/reportContent'; | ||
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app'; | ||
import { selectIsReportingContent, selectReportContentError } from 'redux/selectors/reportContent'; | ||
import ModalReportContent from './view'; | ||
|
||
const select = (state) => ({ | ||
isReporting: selectIsReportingContent(state), | ||
error: selectReportContentError(state), | ||
activeChannelClaim: selectActiveChannelClaim(state), | ||
incognito: selectIncognito(state), | ||
}); | ||
|
||
const perform = (dispatch) => ({ | ||
doHideModal: () => dispatch(doHideModal()), | ||
doReportContent: (category, params) => dispatch(doReportContent(category, params)), | ||
}); | ||
|
||
export default connect(select, perform)(ModalReportContent); |
Oops, something went wrong.