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:
parent
0a1d2cbf99
commit
bb81bdae69
16 changed files with 80 additions and 127 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue