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:
parent
f10a1fa2d8
commit
ae93ff065d
1 changed files with 2 additions and 4 deletions
|
@ -17,12 +17,10 @@ const Paragraph: FC<Props> = ({ lines = 3, wordsLimit = 12, ...props }) => {
|
||||||
[lines, wordsLimit]
|
[lines, wordsLimit]
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log({ iters });
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Group>
|
<Group>
|
||||||
{iters.map(words => (
|
{iters.map((words, i) => (
|
||||||
<div className={styles.para}>
|
<div className={styles.para} key={i}>
|
||||||
{words.map(word => (
|
{words.map(word => (
|
||||||
<Placeholder key={word} width={`${Math.round(Math.random() * 120) + 60}px`} active />
|
<Placeholder key={word} width={`${Math.round(Math.random() * 120) + 60}px`} active />
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue