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

even better cell paragraphs

This commit is contained in:
Fedor Katurov 2019-12-02 17:02:35 +07:00
parent 4c84e24210
commit c3cb80b162

View file

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