mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-07 16:24:29 +01:00
hide gift link ios
This commit is contained in:
committed by
Tony Giorgio
parent
adeb695722
commit
812e861e10
@@ -659,6 +659,13 @@ export function Send() {
|
||||
return !destination() || sending() || amountSats() === 0n || !!error();
|
||||
});
|
||||
|
||||
const shouldShowGiftLink = createMemo(() => {
|
||||
// iOS users should only see gift link if they're mutiny+ subscribers
|
||||
const isIOS = Capacitor.getPlatform() === "ios";
|
||||
|
||||
return !isIOS || state.mutiny_plus;
|
||||
});
|
||||
|
||||
return (
|
||||
<MutinyWalletGuard>
|
||||
<SafeArea>
|
||||
@@ -837,9 +844,11 @@ export function Send() {
|
||||
</Button>
|
||||
</VStack>
|
||||
</Show>
|
||||
<div class="flex justify-center">
|
||||
<GiftLink />
|
||||
</div>
|
||||
<Show when={shouldShowGiftLink()}>
|
||||
<div class="flex justify-center">
|
||||
<GiftLink />
|
||||
</div>
|
||||
</Show>
|
||||
</VStack>
|
||||
</DefaultMain>
|
||||
<NavBar activeTab="send" />
|
||||
|
||||
Reference in New Issue
Block a user