Skip to content

Commit

Permalink
Merge pull request #131 from IntersectMBO/2054-proposal-discussion-co…
Browse files Browse the repository at this point in the history
…mments-limited-to-256-characters

feat(#2054): enabled comment to be maxLength of 2500 characters
  • Loading branch information
teske00 authored Sep 17, 2024
2 parents 7c85153 + b7e960b commit d78601c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@intersect.mbo/pdf-ui",
"version": "0.3.9",
"version": "0.4.0",
"description": "Proposal discussion ui",
"main": "./src/index.js",
"exports": {
Expand Down Expand Up @@ -67,4 +67,4 @@
"jsxSingleQuote": true,
"bracketSpacing": true
}
}
}
2 changes: 1 addition & 1 deletion src/components/CommentCard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CommentCard = ({ comment, proposal }) => {
useAppContext();
const theme = useTheme();
const maxLength = 128;
const subcommentMaxLength = 256;
const subcommentMaxLength = 2500;
const sliceString = (str) => {
if (!str) return '';
if (str.length > maxLength) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import ReactMarkdown from 'react-markdown';
import { loginUserToApp } from '../../../lib/helpers';

const SingleGovernanceAction = ({ id }) => {
const MAX_COMMENT_LENGTH = 256;
const MAX_COMMENT_LENGTH = 2500;
const navigate = useNavigate();
const openLink = (link) => openInNewTab(link);

Expand Down

0 comments on commit d78601c

Please sign in to comment.