Skip to content

Commit 1753afd

Browse files
committed
add suspense
1 parent 7617406 commit 1753afd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/pages/dashboard/components/RouteList.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ const RouteCard: VoidComponent<RouteCardProps> = (props) => {
4545
}
4646
subhead={location()}
4747
trailing={
48-
<Show when={timeline()?.userFlags}>
49-
<div class="flex items-center justify-center rounded-full bg-gradient-to-br from-amber-500 to-amber-900 p-2 ring-1 ring-amber-300 shadow-inner shadow-black/20">
50-
<Icon class="text-yellow-300" size="20" name="flag" filled />
51-
</div>
52-
</Show>
48+
<Suspense>
49+
<Show when={timeline()?.userFlags}>
50+
<div class="flex items-center justify-center rounded-full bg-gradient-to-br from-amber-500 to-amber-900 p-2 ring-1 ring-amber-300 shadow-inner shadow-black/20">
51+
<Icon class="text-yellow-300" size="20" name="flag" filled />
52+
</div>
53+
</Show>
54+
</Suspense>
5355
}
5456
/>
5557

0 commit comments

Comments
 (0)