Skip to content

Commit

Permalink
Merge pull request #225 from helius-labs/menu
Browse files Browse the repository at this point in the history
menu changes, nav addition
  • Loading branch information
solhosty authored Sep 17, 2023
2 parents f9a29b3 + 2accd65 commit e177331
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/lib/components/modals/help.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import type { Icon as IconType } from "src/lib/types";
import Icon from "$lib/components/icon.svelte";
const supportedSearches: Array<[IconType, string]> = [
["backpack", "xNFT Backpack usernames like @username"],
["globe", ".sol, .abc, .poor, .bonk domains"],
["person", "Wallet/Account addresses"],
["coins", "Token addresses"],
Expand Down
6 changes: 1 addition & 5 deletions src/lib/components/modals/menu.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<script>
import Network from "../network.svelte";
const params = new URLSearchParams(window.location.search);
const network = params.get("network");
const isMainnetValue = network !== "devnet";
</script>

{#each [{ name: "Home", url: `/?network=${isMainnetValue ? "mainnet" : "devnet"}` }, { name: "About Helius APIs", url: "https://helius.xyz" }, { name: "Contribute", url: "https://github.com/helius-labs/xray" }, { name: "Join Discord", url: "https://discord.gg/nSkq35VUf5" }] as { name, url }}
{#each [{ name: "Contribute", url: "https://github.com/helius-labs/xray" }, { name: "Join Discord", url: "https://discord.gg/nSkq35VUf5" }] as { name, url }}
<a
href={url}
data-sveltekit-reload
Expand Down
5 changes: 5 additions & 0 deletions src/lib/components/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@

<div class="col-span-2 flex items-center justify-end">
<div class="flex justify-end pr-2">
<a href="https://docs.helius.dev/welcome/what-is-helius" rel="noreferrer" target="_blank"
class="btn-ghost btn"
>
<img class="h-6" src="docs.svg" alt="">
</a>
<button
class="btn-ghost btn"
on:click={() => showModal("HELP")}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/stats.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const slot = client.currentSlot.createQuery([isMainnetValue]);
</script>

<div class="flex h-8 w-full items-center justify-center text-xs">
<div class="flex h-10 w-full items-center justify-center text-sm">
<div class="mr-4">
{#if !$tps.isLoading}
<div
Expand Down
7 changes: 7 additions & 0 deletions static/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit e177331

@vercel
Copy link

@vercel vercel bot commented on e177331 Sep 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.