Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Use environment value directly in sandbox and email banners

Kiran K8e29d997ff64
diff --git a/apps/web/lib/sandbox/components/program-environment-banner.tsx b/apps/web/lib/sandbox/components/program-environment-banner.tsx
index 9f6e808d0b..2c9a48a7ba 100644
--- a/apps/web/lib/sandbox/components/program-environment-banner.tsx
+++ b/apps/web/lib/sandbox/components/program-environment-banner.tsx
@@ -28,7 +28,7 @@ export function ProgramEnvironmentBanner({
</div>
<p className="text-sm font-medium">
- No real money or payouts in {capitalize(environment)}
+ No real money or payouts in {environment}
</p>
</div>
);
diff --git a/apps/web/lib/sandbox/components/workspace-environment-banner.tsx b/apps/web/lib/sandbox/components/workspace-environment-banner.tsx
index d930521566..080b53d1f1 100644
--- a/apps/web/lib/sandbox/components/workspace-environment-banner.tsx
+++ b/apps/web/lib/sandbox/components/workspace-environment-banner.tsx
@@ -47,7 +47,7 @@ export function WorkspaceEnvironmentBanner() {
</div>
<p className="hidden min-w-0 flex-1 text-center text-sm font-medium sm:block">
- No real money or payouts in staging.{" "}
+ No real money or payouts in {environment}.{" "}
<a
href="https://dub.co/docs"
target="_blank"
diff --git a/packages/email/src/components/environment-banner.tsx b/packages/email/src/components/environment-banner.tsx
index ac29ca8f8d..cd211bfe4f 100644
--- a/packages/email/src/components/environment-banner.tsx
+++ b/packages/email/src/components/environment-banner.tsx
@@ -15,8 +15,8 @@ export function EnvironmentBanner({
return (
<Section
className={cn(
- "mb-4 rounded-lg px-4 py-3",
- environment === "staging" ? "bg-amber-100" : "bg-blue-200",
+ "mb-4 rounded-lg px-4 py-2",
+ environment === "staging" ? "bg-amber-200" : "bg-blue-200",
)}
>
<Row>
@@ -40,7 +40,7 @@ export function EnvironmentBanner({
</Column>
<Column valign="middle" align="right">
<Text className="m-0 text-right text-sm font-medium text-neutral-800">
- No real money or payouts in {capitalize(environment)}.
+ No real money or payouts in {environment}.
</Text>
</Column>
</Row>