Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add a shortcut button for going for inbox
Rūdolfs Ošiņš committed 1 year ago
commit 263037d0a7702c440998f25df6d5f53376e8152e
parent 8babf383d3dd5aca1953b9058dfe169eb6113f76
1 file changed +8 -4
modified src/components/Header.svelte
@@ -4,17 +4,16 @@
  import * as router from "@app/lib/router";
  import { nodeRunning } from "@app/lib/events";

+
  import Avatar from "./Avatar.svelte";
  import Icon from "./Icon.svelte";
  import NakedButton from "./NakedButton.svelte";
-
  import Avatar from "./Avatar.svelte";

  interface Props {
    publicKey: string;
    center?: Snippet;
-
    settingsButton?: Snippet;
  }

-
  const { center, settingsButton, publicKey }: Props = $props();
+
  const { center, publicKey }: Props = $props();
</script>

<style>
@@ -92,7 +91,12 @@
            Offline
          {/if}
        </div>
-
        {@render settingsButton?.()}
+
        <NakedButton
+
          variant="ghost"
+
          stylePadding="0 4px"
+
          onclick={() => router.push({ resource: "inbox" })}>
+
          <Icon name="inbox" />
+
        </NakedButton>
      </div>
    </div>
  </div>