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

#23 adde comment_count and last_seen to lab

This commit is contained in:
Fedor Katurov 2021-03-24 14:53:29 +07:00
parent ccec211727
commit 5f938cfa92
4 changed files with 18 additions and 6 deletions

View file

@ -1,6 +1,5 @@
import React, { FC } from 'react';
import { Group } from '~/components/containers/Group';
import { Icon } from '~/components/input/Icon';
import { INodeComponentProps } from '~/redux/node/constants';
import { Filler } from '~/components/containers/Filler';
import styles from './styles.module.scss';

View file

@ -2,15 +2,22 @@ import React, { FC } from 'react';
import { INode } from '~/redux/types';
import { useNodeBlocks } from '~/utils/hooks/node/useNodeBlocks';
import styles from './styles.module.scss';
import { LabBottomPanel } from '~/components/lab/LabBottomPanel';
interface IProps {
node: INode;
isLoading?: boolean;
}
const LabNode: FC<IProps> = ({ node }) => {
const LabNode: FC<IProps> = ({ node, isLoading }) => {
const { lab } = useNodeBlocks(node, false);
return <div className={styles.wrap}>{lab}</div>;
return (
<div className={styles.wrap}>
{lab}
<LabBottomPanel node={node} isLoading={!!isLoading} />
</div>
);
};
export { LabNode };