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

moved comments load to hook

This commit is contained in:
Fedor Katurov 2021-09-20 11:56:20 +07:00
parent 5e1e575ee3
commit 639c952c2c
11 changed files with 184 additions and 59 deletions

View file

@ -1,6 +1,6 @@
import React, { FC, HTMLAttributes, memo } from 'react';
import { CommentWrapper } from '~/components/containers/CommentWrapper';
import { IComment, ICommentGroup } from '~/redux/types';
import { IComment, ICommentGroup, IFile } from '~/redux/types';
import { CommentContent } from '~/components/comment/CommentContent';
import styles from './styles.module.scss';
import { CommendDeleted } from '../../node/CommendDeleted';
@ -13,7 +13,7 @@ type IProps = HTMLAttributes<HTMLDivElement> & {
is_same?: boolean;
can_edit?: boolean;
onDelete: (id: IComment['id'], isLocked: boolean) => void;
modalShowPhotoswipe: typeof MODAL_ACTIONS.modalShowPhotoswipe;
modalShowPhotoswipe: (images: IFile[], index: number) => void;
};
const Comment: FC<IProps> = memo(