feat: reorder Tweets by slicing map

pull/673/head
Yehia Rasheed 1 month ago committed by GitHub
parent 58e02ebff6
commit d9fe94db3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -529,7 +529,7 @@ function TweetsSection() {
<div className={clsx('row', styles.tweetsSection)}> <div className={clsx('row', styles.tweetsSection)}>
{/* Render tweets in groups of three */} {/* Render tweets in groups of three */}
<div className="col col--4"> <div className="col col--4">
{userTweets.slice(0, 3).map((tweet, index) => ( {userTweets.slice(0, 4).map((tweet, index) => (
<Tweet <Tweet
key={index} key={index}
url={tweet.url} url={tweet.url}
@ -542,7 +542,7 @@ function TweetsSection() {
))} ))}
</div> </div>
<div className="col col--4"> <div className="col col--4">
{userTweets.slice(3, 6).map((tweet, index) => ( {userTweets.slice(4, 7).map((tweet, index) => (
<Tweet <Tweet
key={index} key={index}
url={tweet.url} url={tweet.url}
@ -555,7 +555,7 @@ function TweetsSection() {
))} ))}
</div> </div>
<div className="col col--4"> <div className="col col--4">
{userTweets.slice(6, 9).map((tweet, index) => ( {userTweets.slice(7, 10).map((tweet, index) => (
<Tweet <Tweet
key={index} key={index}
url={tweet.url} url={tweet.url}

Loading…
Cancel
Save