Skip to content

Commit 6bc1576

Browse files
committed
Show the Contact us button on the Project row
1 parent 9661a04 commit 6bc1576

File tree

1 file changed

+15
-3
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.limits

1 file changed

+15
-3
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.limits/route.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default function Page() {
132132
</PageAccessories>
133133
</NavBar>
134134
<PageBody scrollable={true}>
135-
<div className="mx-auto mt-10 max-w-3xl p-4">
135+
<div className="mx-auto mt-10 max-w-2xl p-4">
136136
<div className="flex flex-col gap-8">
137137
{/* Current Plan Section */}
138138
{data.planName && (
@@ -607,6 +607,18 @@ function QuotaRow({
607607
const isUpgradable = upgradableQuotas.includes(quota.name);
608608

609609
const renderUpgrade = () => {
610+
// Projects always show Contact us (regardless of upgrade flags)
611+
if (quota.name === "Projects") {
612+
return (
613+
<div className="flex justify-end">
614+
<Feedback
615+
button={<Button variant="secondary/small">Contact us</Button>}
616+
defaultValue="help"
617+
/>
618+
</div>
619+
);
620+
}
621+
610622
if (!isUpgradable) {
611623
return null;
612624
}
@@ -622,8 +634,8 @@ function QuotaRow({
622634
);
623635
}
624636

625-
// On top plan - show Contact us if canExceed is true (or for Projects which is always exceedable)
626-
if (quota.canExceed || quota.name === "Projects") {
637+
// On top plan - show Contact us if canExceed is true
638+
if (quota.canExceed) {
627639
return (
628640
<div className="flex justify-end">
629641
<Feedback

0 commit comments

Comments
 (0)