File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/web/src/app/(app)/settings Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ interface BasicSettingsCardProps {
3232export function BasicSettingsCard ( { name, description, children } : BasicSettingsCardProps ) {
3333 return (
3434 < SettingsCard >
35- < div className = "flex items-start justify-between gap-4" >
35+ < div className = "flex items-center justify-between gap-4" >
3636 < div className = "flex-1 min-w-0" >
3737 < p className = "font-medium" > { name } </ p >
3838 < p className = "text-sm text-muted-foreground mt-1" > { description } </ p >
Original file line number Diff line number Diff line change @@ -2,18 +2,28 @@ import { authenticatedPage } from "@/middleware/authenticatedPage";
22import { OrgRole } from "@sourcebot/db" ;
33import { ActivationCodeCard } from "./activationCodeCard" ;
44import { PurchaseButton } from "./purchaseButton" ;
5+ import { BasicSettingsCard } from "../components/settingsCard" ;
6+ import { getPlan } from "@/lib/entitlements" ;
57
68export default authenticatedPage ( async ( { prisma, org } ) => {
79 const license = await prisma . license . findUnique ( {
810 where : { orgId : org . id } ,
911 } ) ;
1012
13+ const plan = await getPlan ( ) ;
14+
1115 return (
1216 < div className = "flex flex-col gap-6" >
1317 < div >
1418 < h3 className = "text-lg font-medium" > License</ h3 >
1519 < p className = "text-sm text-muted-foreground" > Manage your license.</ p >
1620 </ div >
21+ < BasicSettingsCard
22+ name = "Current plan"
23+ description = "Your active Sourcebot plan."
24+ >
25+ < span className = "text-sm font-medium" > { plan } </ span >
26+ </ BasicSettingsCard >
1727 < ActivationCodeCard isActivated = { ! ! license } />
1828 < PurchaseButton />
1929 </ div >
You can’t perform that action at this time.
0 commit comments