Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove project count on Card component
Sebastian Martinez committed 3 years ago
commit fa112e88d827a1ccdc02506d53d9e458c8b31120
parent 91cfaf08b31d78153658cd17259cdd8cb4421f9e
1 file changed +0 -19
modified src/Card.svelte
@@ -1,12 +1,10 @@
<script lang="ts">
-
  import { onMount } from "svelte";
  import { Link } from "svelte-routing";
  import Avatar from "@app/Avatar.svelte";
  import type { Profile } from "@app/profile";
  import type { Config } from "@app/config";
  import { formatName, formatAddress } from "@app/utils";
  import type { Seed } from "@app/base/seeds/Seed";
-
  import Loading from "@app/Loading.svelte";

  export let profile:
    | Profile
@@ -20,15 +18,6 @@
  export let config: Config;
  export let path: string;
  export let members: string[] = [];
-

-
  let numberOfProjects: number | null = null;
-

-
  onMount(async () => {
-
    if (seed) {
-
      const projects = await seed.getProjects();
-
      numberOfProjects = projects.length;
-
    }
-
  });
</script>

<style>
@@ -118,14 +107,6 @@
        {:else}
          {formatAddress(profile.address)}
        {/if}
-
      {:else if numberOfProjects !== null}
-
        {#if numberOfProjects > 0}
-
          {numberOfProjects} project(s)
-
        {:else}
-
          No projects
-
        {/if}
-
      {:else if numberOfProjects === null}
-
        <Loading center fadeIn small />
      {/if}
    </div>
  </div>