diff --git a/app/lish/[did]/[publication]/UpgradeModal.tsx b/app/lish/[did]/[publication]/UpgradeModal.tsx index ced03403..daa12094 100644 --- a/app/lish/[did]/[publication]/UpgradeModal.tsx +++ b/app/lish/[did]/[publication]/UpgradeModal.tsx @@ -86,21 +86,10 @@ export const UpgradeModal = (props: { ); }; -export const InlineUpgrade = (props: { compact?: boolean }) => { +export const InlineUpgradeToPro = (props: { compact?: boolean }) => { return (
- - Upgrade to Leaflet Pro! - - } - /> +
@@ -109,3 +98,24 @@ export const InlineUpgrade = (props: { compact?: boolean }) => {
); }; + +export const UpgradeToProButton = (props: { + fullWidth?: boolean; + compact?: boolean; +}) => { + return ( + + Upgrade to Leaflet Pro! + + } + /> + ); +}; diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx index a89f07ec..bda5e413 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx @@ -134,7 +134,9 @@ export const Interactions = (props: { const tagCount = tags?.length || 0; let interactionsAvailable = - props.showComments || props.showMentions || props.showRecommends; + props.showComments || + (props.showMentions && props.quotesCount > 0) || + props.showRecommends; return (
{ +export const ManageProSubscription = (props: { compact?: boolean }) => { const [loading, setLoading] = useState(false); const [error, setError] = useState(null); const { identity } = useIdentityData(); @@ -29,24 +29,49 @@ export const ManageProSubscription = (props: {}) => { setLoading(false); } } + if (props.compact) { + return ( +
+ + {loading ? : "Manage Billing"} + +
+ {subscription?.status === "canceled" + ? "Your subscription has ended" + : subscription?.status === "canceling" + ? `Access until ${renewalDate}` + : `Renews ${renewalDate}`} +
+ {error &&
{error}
} +
+ ); + } return (
-
+
- You have a
- {PRODUCT_DEFINITION.name} subscription -
+ You are subscribed to +
+
{PRODUCT_DEFINITION.name}
- {subscription?.status === "canceled" - ? "Your subscription has ended" - : subscription?.status === "canceling" - ? `Access until ${renewalDate}` - : `Renews on ${renewalDate}`} +
+ {subscription?.status === "canceled" + ? "Your subscription has ended" + : subscription?.status === "canceling" + ? `Access until ${renewalDate}` + : `Renews ${renewalDate}`} +
props.setShowInDiscover(!props.showInDiscover)} >
-
Make Public
+
Make Public
- {cardBorderHidden &&
} + {cardBorderHidden &&
}

Post Layout

@@ -43,10 +43,12 @@ export function PostSettings(props: { toggle={props.showPrevNext} onToggle={() => props.setShowPrevNext(!props.showPrevNext)} > -
Show Prev/Next Buttons on Post
+
+ Show Prev/Next Buttons on Post +
- {cardBorderHidden &&
} + {cardBorderHidden &&
}

Post Interactions

@@ -54,7 +56,7 @@ export function PostSettings(props: { toggle={props.showComments} onToggle={() => props.setShowComments(!props.showComments)} > -
Show Comments
+
Show Comments
props.setShowMentions(!props.showMentions)} >
-
Show Mentions
+
Show Mentions
Display a list of Bluesky mentions about your post
@@ -74,7 +76,7 @@ export function PostSettings(props: { onToggle={() => props.setShowRecommends(!props.showRecommends)} >
-
Show Recommends
+
Show Recommends
Allow readers to recommend/like your post
diff --git a/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx b/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx index f6755931..caec3146 100644 --- a/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx +++ b/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx @@ -17,7 +17,7 @@ import { ThemeSettings } from "./ThemeSettings"; import { useCardBorderHidden } from "components/Pages/useCardBorderHidden"; import { ManageProSubscription } from "./ManageProSubscription"; import { useIsPro, useCanSeePro } from "src/hooks/useEntitlement"; -import { InlineUpgrade } from "../../UpgradeModal"; +import { InlineUpgradeToPro, UpgradeToProButton } from "../../UpgradeModal"; type SettingsView = "all" | "theme"; @@ -114,7 +114,7 @@ export function SettingsContent(props: { showPageBackground: boolean }) { setIconFile={setIconFile} /> - {cardBorderHidden &&
} + {cardBorderHidden &&
} {/* ── Post Settings ── */} - {cardBorderHidden &&
} + {cardBorderHidden &&
} - {cardBorderHidden &&
} + {cardBorderHidden &&
} + {cardBorderHidden &&
} + - {canSeePro && !isPro ? : } +

Leaflet Pro

+ {canSeePro && !isPro ? ( + + ) : ( + + )}
+ {cardBorderHidden &&
}
diff --git a/components/ActionBar/ProfileButton.tsx b/components/ActionBar/ProfileButton.tsx index c5adf2eb..dcab7356 100644 --- a/components/ActionBar/ProfileButton.tsx +++ b/components/ActionBar/ProfileButton.tsx @@ -9,7 +9,7 @@ import { mutate } from "swr"; import { SpeedyLink } from "components/SpeedyLink"; import { Popover } from "components/Popover"; import { Modal } from "components/Modal"; -import { InlineUpgrade } from "app/lish/[did]/[publication]/UpgradeModal"; +import { InlineUpgradeToPro } from "app/lish/[did]/[publication]/UpgradeModal"; import { ManageProSubscription } from "app/lish/[did]/[publication]/dashboard/settings/ManageProSubscription"; import { ManageDomains } from "components/Domains/ManageDomains"; import { WebSmall } from "components/Icons/WebSmall"; @@ -99,7 +99,7 @@ export const ProfileButton = () => {
- +