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

fixed key issue on Paragraph

This commit is contained in:
Fedor Katurov 2021-10-05 12:26:57 +07:00
parent f10a1fa2d8
commit ae93ff065d

View file

@ -17,12 +17,10 @@ const Paragraph: FC<Props> = ({ lines = 3, wordsLimit = 12, ...props }) => {
[lines, wordsLimit]
);
console.log({ iters });
return (
<Group>
{iters.map(words => (
<div className={styles.para}>
{iters.map((words, i) => (
<div className={styles.para} key={i}>
{words.map(word => (
<Placeholder key={word} width={`${Math.round(Math.random() * 120) + 60}px`} active />
))}