Skip to content

Commit

Permalink
Loading feedback on link.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jun 25, 2024
1 parent b641095 commit e55907c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/OrganizationLink.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<script lang="ts">
import Link from './Link.svelte';
import { type OrganizationID } from '$types/Organization';
import { navigating } from '$app/stores';
import Loading from './Loading.svelte';
export let id: OrganizationID;
export let name: string;
</script>

<Link to="/org/{id}" kind="org">{name}</Link>
{#if $navigating}
<Loading />
{:else}
<Link to="/org/{id}" kind="org">{name}</Link>
{/if}

0 comments on commit e55907c

Please sign in to comment.