Skip to content

Commit

Permalink
fix: Center tokens loader
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Jul 4, 2024
1 parent da76c04 commit 62259f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/web/src/views/settings/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,14 @@ const APISection: SettingsSectionComponent = (props) => {
</CollapsibleSection>
</Show>
<CollapsibleSection icon={mdiShieldKey} label="Access tokens">
<Show when={tokens().length || !loading()} fallback={<Loader />}>
<Show
when={tokens().length || !loading()}
fallback={
<div class="flex justify-center items-center w-full">
<Loader />
</div>
}
>
<For each={tokens()} fallback={<p class="px-2 w-full text-start">No tokens found</p>}>
{(token) => {
return (
Expand Down

0 comments on commit 62259f6

Please sign in to comment.