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

several bug fixes

This commit is contained in:
Fedor Katurov 2019-11-15 13:36:13 +07:00
parent f23b9166e1
commit 11348aa411
13 changed files with 281 additions and 110 deletions

View file

@ -0,0 +1,31 @@
import React, { FC, memo } from "react";
import styles from "./styles.scss";
import cell_style from "~/components/node/NodeRelatedItem/styles.scss";
import { Group } from "~/components/containers/Group";
import { Placeholder } from "~/components/placeholders/Placeholder";
import range from "ramda/es/range";
import classNames from "classnames";
interface IProps {}
const NodeRelatedPlaceholder: FC<IProps> = memo(() => {
return (
<Group className={classNames(styles.wrap, styles.placeholder)}>
<div className={styles.title}>
<div className={styles.line} />
<div className={styles.text}>
<Placeholder />
</div>
<div className={styles.line} />
</div>
<div className={styles.grid}>
{range(0, 6).map(el => (
<div className={cell_style.item} key={el} />
))}
</div>
</Group>
);
});
export { NodeRelatedPlaceholder };

View file

@ -36,3 +36,15 @@
.text {
margin: 0 $gap;
}
.placeholder {
.text {
opacity: 1;
}
.grid {
div {
background: $placeholder_bg;
}
}
}