diff --git a/src/app/components/MenuSettings.svelte b/src/app/components/MenuSettings.svelte index ac4ab025..f44dbf6b 100644 --- a/src/app/components/MenuSettings.svelte +++ b/src/app/components/MenuSettings.svelte @@ -1,12 +1,9 @@ -
- - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Profile
- {/snippet} - {#snippet info()} -
Customize your user profile
- {/snippet} -
- - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Alerts
- {/snippet} - {#snippet info()} -
Set up email digests and push notifications
- {/snippet} -
- - {#if Capacitor.getPlatform() !== "ios"} - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Wallet
- {/snippet} - {#snippet info()} -
Connect a bitcoin wallet for sending social tips
- {/snippet} -
+
+ {#if $pubkey} + + {/if} - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Relays
- {/snippet} - {#snippet info()} -
Control how {PLATFORM_NAME} talks to the network
- {/snippet} -
- - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
Settings
- {/snippet} - {#snippet info()} -
Get into the details about how {PLATFORM_NAME} works
- {/snippet} -
- - - - - {#snippet icon()} -
- {/snippet} - {#snippet title()} -
About
- {/snippet} - {#snippet info()} -
Learn about {PLATFORM_NAME} and support the developer
- {/snippet} -
- - - +
+ + + Alerts + + {#if Capacitor.getPlatform() !== "ios"} + + + Wallet + + {/if} + + + Relays + + + + Content + + + + Privacy + +
+
+ + / + About + / + +
diff --git a/src/app/components/Profile.svelte b/src/app/components/Profile.svelte index 84113ff6..b19aab1c 100644 --- a/src/app/components/Profile.svelte +++ b/src/app/components/Profile.svelte @@ -17,15 +17,20 @@ url?: string showPubkey?: boolean avatarSize?: number + inert?: boolean } - const {pubkey, url, showPubkey, avatarSize = 10}: Props = $props() + const {pubkey, url, showPubkey, inert, avatarSize = 10}: Props = $props() const relays = removeUndefined([url]) const profileDisplay = deriveProfileDisplay(pubkey, relays) const handle = deriveHandleForPubkey(pubkey) - const openProfile = () => pushModal(ProfileDetail, {pubkey, url}) + const openProfile = () => { + if (!inert) { + pushModal(ProfileDetail, {pubkey, url}) + } + } const copyPubkey = () => clip(nip19.npubEncode(pubkey)) diff --git a/src/lib/components/Dialog.svelte b/src/lib/components/Dialog.svelte index 2c6cb151..7b20bbfe 100644 --- a/src/lib/components/Dialog.svelte +++ b/src/lib/components/Dialog.svelte @@ -3,6 +3,10 @@ import cx from "classnames" import {noop} from "@welshman/lib" import {fade, fly} from "@lib/transition" + import Close from "@assets/icons/close.svg?dataurl" + import Icon from "@lib/components/Icon.svelte" + import Button from "@lib/components/Button.svelte" + import {clearModals} from "@app/util/modal" type Props = { onClose?: any @@ -43,6 +47,11 @@
+
diff --git a/src/routes/settings/+layout.svelte b/src/routes/settings/+layout.svelte index 4e8f4b9b..319771ae 100644 --- a/src/routes/settings/+layout.svelte +++ b/src/routes/settings/+layout.svelte @@ -6,7 +6,7 @@ import Wallet from "@assets/icons/wallet.svg?dataurl" import Server from "@assets/icons/server.svg?dataurl" import Moon from "@assets/icons/moon.svg?dataurl" - import InfoSquare from "@assets/icons/info-square.svg?dataurl" + import Code2 from "@assets/icons/code-2.svg?dataurl" import Exit from "@assets/icons/logout-3.svg?dataurl" import GalleryMinimalistic from "@assets/icons/gallery-minimalistic.svg?dataurl" import Shield from "@assets/icons/shield-minimalistic.svg?dataurl" @@ -73,7 +73,7 @@
- About + About
diff --git a/src/routes/spaces/+page.svelte b/src/routes/spaces/+page.svelte index 870e44f6..ac2852cc 100644 --- a/src/routes/spaces/+page.svelte +++ b/src/routes/spaces/+page.svelte @@ -1,6 +1,6 @@