Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ios): add payment back to settings (#4209)

Peter Chinmanb6afaec740ca
diff --git a/js/app/packages/app/component/settings/Account.tsx b/js/app/packages/app/component/settings/Account.tsx
index 18fd5c7a17..6451ef9355 100644
--- a/js/app/packages/app/component/settings/Account.tsx
+++ b/js/app/packages/app/component/settings/Account.tsx
@@ -319,9 +319,13 @@ export function Account() {
<div class="text-sm font-semibold">Account</div>
</Panel.Header>
- <Panel.Toolbar class="h-full w-full">
- <Show when={permissions()?.includes(PERMISSION_IDS.WRITE_STRIPE_SUBSCRIPTION) && !isNativeMobilePlatform()}>
- <div class="px-4 py-2 w-full">
+ <Panel.Body scroll class="text-ink">
+ <Show
+ when={permissions()?.includes(
+ PERMISSION_IDS.WRITE_STRIPE_SUBSCRIPTION
+ )}
+ >
+ <div class="px-4 py-2 w-full border-b border-edge-muted">
<ShowFeatureFlag
key="enable-new-pricing"
enabledOverride={ENABLE_NEW_PRICING_OVERRIDE}
@@ -352,9 +356,7 @@ export function Account() {
</ShowFeatureFlag>
</div>
</Show>
- </Panel.Toolbar>
- <Panel.Body scroll class="text-ink">
<div class="grid gap-px bg-edge-muted border-b border-edge-muted">
<Show when={ENABLE_PROFILE_PICTURES}>
<Show when={userId()} keyed>
diff --git a/js/app/packages/core/auth/license.ts b/js/app/packages/core/auth/license.ts
index 2f2abb600a..535c860df6 100644
--- a/js/app/packages/core/auth/license.ts
+++ b/js/app/packages/core/auth/license.ts
@@ -1,12 +1,9 @@
import { useLicenseStatus } from '@core/context/user';
-import { isNativeMobilePlatform } from '@core/mobile/isNativeMobilePlatform';
import { createMemo } from 'solid-js';
export function useHasPaidAccess() {
const licenseStatus = useLicenseStatus();
return createMemo((): boolean => {
- if (isNativeMobilePlatform()) return true;
-
const status = licenseStatus();
return status === 'trialing' || status === 'active';
});