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

cleared console logs

This commit is contained in:
muerwre 2019-08-25 17:58:14 +07:00
parent 6f90115d3b
commit 390fa51d0c
2 changed files with 0 additions and 7 deletions

View file

@ -39,8 +39,6 @@ const NodeImageBlock: FC<IProps> = ({ node, is_loading }) => {
]); ]);
useEffect(() => { useEffect(() => {
console.log({ height });
if (!refs || !refs.current[current] || !loaded[current]) return setHeight(320); if (!refs || !refs.current[current] || !loaded[current]) return setHeight(320);
const el = refs.current[current]; const el = refs.current[current];

View file

@ -36,14 +36,9 @@ const NodeLayoutUnconnected: FC<IProps> = ({
useEffect(() => { useEffect(() => {
if (is_loading) return; if (is_loading) return;
nodeLoadNode(id, null); nodeLoadNode(id, null);
// todo: if node not loading, load it!
}, []); }, []);
useEffect(() => console.log({ is_loading }), [is_loading]);
const block = node && node.type && NODE_COMPONENTS[node.type] && NODE_COMPONENTS[node.type]; const block = node && node.type && NODE_COMPONENTS[node.type] && NODE_COMPONENTS[node.type];
// const view = block && block[is_loading ? 'placeholder' : 'component'];
// console.log({ block, view });
return ( return (
<Card className={styles.node} seamless> <Card className={styles.node} seamless>