Skip to content

Commit

Permalink
Fix Repo Link & Add Comment Length Validation (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
dternyak authored Jun 6, 2019
1 parent 0c3164c commit d5ed370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions frontend/client/components/MarkdownEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ const commands: { [key in MARKDOWN_TYPE]: ReactMdeProps['commands'] } = {
],
},
{
commands: [
ReactMdeCommands.linkCommand,
ReactMdeCommands.quoteCommand,
],
commands: [ReactMdeCommands.linkCommand, ReactMdeCommands.quoteCommand],
},
{
commands: [
Expand Down Expand Up @@ -104,7 +101,7 @@ export default class MarkdownEditor extends React.PureComponent<Props, State> {
const { randomKey, value, tab } = this.state;
return (
<div
ref={(el) => this.el = el}
ref={el => (this.el = el)}
className={classnames({
MarkdownEditor: true,
['is-reduced']: type === MARKDOWN_TYPE.REDUCED,
Expand All @@ -119,6 +116,7 @@ export default class MarkdownEditor extends React.PureComponent<Props, State> {
generateMarkdownPreview={this.generatePreview}
commands={commands[type]}
readOnly={!!readOnly}
textAreaProps={{ maxLength: 1000 }}
minEditorHeight={minHeight}
minPreviewHeight={minHeight - 10}
maxEditorHeight={99999}
Expand Down
2 changes: 1 addition & 1 deletion frontend/client/static/markdown/CONTACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

* You may reach out to the Zcash Foundation by emailing us at [email protected]
* You can find us on twitter at https://twitter.com/zcashfoundation
* You can contribute or report issues at https://github.com/zcashfoundation
* You can contribute or report issues at https://github.com/ZcashFoundation/zcash-grant-system/issues

0 comments on commit d5ed370

Please sign in to comment.