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:
parent
5e1e575ee3
commit
639c952c2c
11 changed files with 184 additions and 59 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue