mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed node loading hook
This commit is contained in:
parent
4c4461ea19
commit
0dc5ae99a3
7 changed files with 35 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, { FC } from 'react';
|
||||
import { BorisUsageStats, IBorisState } from '~/redux/boris/reducer';
|
||||
import { BorisUsageStats } from '~/redux/boris/reducer';
|
||||
import { BorisStatsGit } from '../BorisStatsGit';
|
||||
import { BorisStatsBackend } from '../BorisStatsBackend';
|
||||
|
||||
|
|
|
@ -48,7 +48,19 @@ const Button: FC<IButtonProps> = memo(
|
|||
has_icon_right: !!iconRight,
|
||||
round,
|
||||
}),
|
||||
[className, size, color, disabled, stretchy, iconLeft, iconRight, title, children, iconOnly, round]
|
||||
[
|
||||
className,
|
||||
size,
|
||||
color,
|
||||
disabled,
|
||||
stretchy,
|
||||
iconLeft,
|
||||
iconRight,
|
||||
title,
|
||||
children,
|
||||
iconOnly,
|
||||
round,
|
||||
]
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
|
@ -9,7 +9,9 @@ import markdown from '~/styles/common/markdown.module.scss';
|
|||
interface IProps extends INodeComponentProps {}
|
||||
|
||||
const NodeTextBlock: FC<IProps> = ({ node }) => {
|
||||
const content = useMemo(() => formatTextParagraphs(path(['blocks', 0, 'text'], node) || ''), [node]);
|
||||
const content = useMemo(() => formatTextParagraphs(path(['blocks', 0, 'text'], node) || ''), [
|
||||
node,
|
||||
]);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue