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

fixed flow face appearance

This commit is contained in:
Fedor Katurov 2019-10-31 13:40:50 +07:00
parent 225e5b6cda
commit 48cce8f127
3 changed files with 27 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import React, { FC, useState, useCallback, useEffect } from 'react';
import { INode } from '~/redux/types';
import { getURL } from '~/utils/dom';
import { getURL, formatCellText } from '~/utils/dom';
import classNames from 'classnames';
import * as styles from './styles.scss';
@ -84,7 +84,12 @@ const Cell: FC<IProps> = ({
<div className={classNames(styles.face, { [styles.has_text]: text })}>
<div className={styles.face_content}>
{title && <div className={styles.title}>{title}</div>}
{text && <div className={styles.text}>{text}</div>}
{text && (
<div
className={styles.text}
dangerouslySetInnerHTML={{ __html: formatCellText(text) }}
/>
)}
</div>
</div>