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

fixed comments loader

This commit is contained in:
Fedor Katurov 2022-07-17 13:27:33 +07:00
parent 0a1d2cbf99
commit bb81bdae69
16 changed files with 80 additions and 127 deletions

View file

@ -21,6 +21,7 @@ import { SearchProvider } from '~/utils/providers/SearchProvider';
import { ToastProvider } from '~/utils/providers/ToastProvider';
import '~/styles/main.scss';
import 'tippy.js/dist/tippy.css';
const mobxStore = getMOBXStore();

View file

@ -23,6 +23,7 @@ const BorisPage: VFC = observer(() => {
comments,
hasMore,
isLoading: isLoadingComments,
isLoadingMore,
} = useNodeComments(696);
const { title, setIsBetaTester, isTester, stats, isLoadingStats } = useBoris(comments);
@ -33,6 +34,7 @@ const BorisPage: VFC = observer(() => {
comments={comments}
hasMore={hasMore}
isLoading={isLoadingComments}
isLoadingMore={isLoadingMore}
onShowImageModal={onShowImageModal}
onLoadMoreComments={onLoadMoreComments}
onDeleteComment={onDeleteComment}

View file

@ -99,6 +99,7 @@ const NodePage: FC<Props> = observer(props => {
comments,
hasMore,
isLoading: isLoadingComments,
isLoadingMore: isLoadingMoreComments,
} = useNodeComments(parseInt(id, 10), props.comments);
const { onDelete: onTagDelete, onChange: onTagsChange, onClick: onTagClick } = useNodeTags(
@ -122,6 +123,7 @@ const NodePage: FC<Props> = observer(props => {
hasMore={hasMore}
lastSeenCurrent={lastSeen}
isLoading={isLoadingComments}
isLoadingMore={isLoadingMoreComments}
onShowImageModal={onShowImageModal}
onLoadMoreComments={onLoadMoreComments}
onDeleteComment={onDeleteComment}