1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

paragraphs at cell text

This commit is contained in:
Fedor Katurov 2019-12-02 17:00:05 +07:00
parent bde79a8364
commit 4c84e24210
2 changed files with 32 additions and 51 deletions

View file

@ -122,7 +122,7 @@ export const splitCommentByBlocks = (text: string): ICommentBlock[] =>
export const formatCommentText = (author: string, text: string): ICommentBlock[] =>
text ? splitCommentByBlocks(formatText(text)) : null;
export const formatCellText = (text: string): string => formatText(text);
export const formatCellText = (text: string): string => formatTextParagraphs(formatText(text));
export const getPrettyDate = (date: string): string => {
if (differenceInMonths(new Date(), new Date(date)) >= 3) {