Skip to content

Commit 6adcf31

Browse files
committed
back to await
1 parent bf3b03f commit 6adcf31

1 file changed

Lines changed: 25 additions & 24 deletions

File tree

‎src/pages/contributors.rs‎

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -357,30 +357,31 @@ pub fn Contributors() -> impl IntoView {
357357
</p>
358358
<div class="mt-6 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-5 gap-6">
359359
{
360-
#[cfg(feature = "ssr")]
361-
view! {
362-
<Await future=fetch_contributors() let:res>
363-
{res.contributors
364-
.iter()
365-
.map(|item| {
366-
view! {
367-
<ContributorCard
368-
name=item.login.clone()
369-
description=item.bio.clone()
370-
link=item.url.clone()
371-
brand_src=item.avatar_url.clone()
372-
twitter=item.twitter_username.clone()
373-
location=item.location.clone()
374-
contributions=item
375-
.contributions_collection
376-
.as_ref()
377-
.map(|c| c.total)
378-
.unwrap_or(1)
379-
/>
380-
}
381-
})
382-
.collect::<Vec<_>>()}
383-
</Await>
360+
#[cfg(feature = "ssr")]
361+
view! {
362+
<Await future=fetch_contributors() let:res>
363+
{res
364+
.contributors
365+
.iter()
366+
.map(|item| {
367+
view! {
368+
<ContributorCard
369+
name=item.login.clone()
370+
description=item.bio.clone()
371+
link=item.url.clone()
372+
brand_src=item.avatar_url.clone()
373+
twitter=item.twitter_username.clone()
374+
location=item.location.clone()
375+
contributions=item
376+
.contributions_collection
377+
.as_ref()
378+
.map(|c| c.total)
379+
.unwrap_or(1)
380+
/>
381+
}
382+
})
383+
.collect::<Vec<_>>()}
384+
</Await>
384385
}
385386
}
386387
</div>

0 commit comments

Comments
 (0)