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.

tiny bug fixes

Steven Tey9830c733e491
diff --git a/components/app/settings/plan-usage.tsx b/components/app/settings/plan-usage.tsx
index f69287bdcc..9aa3d74417 100644
--- a/components/app/settings/plan-usage.tsx
+++ b/components/app/settings/plan-usage.tsx
@@ -10,7 +10,7 @@ import {
} from "@/components/shared/icons";
import { motion } from "framer-motion";
import useUsage from "@/lib/swr/use-usage";
-import { getPlanFromUsageLimit, PRO_TIERS } from "@/lib/stripe/constants";
+import { getPlanFromUsageLimit } from "@/lib/stripe/constants";
import { useUpgradePlanModal } from "@/components/app/modals/upgrade-plan-modal";
export default function PlanUsage() {
@@ -127,7 +127,7 @@ export default function PlanUsage() {
</div>
</div>
<div className="border-b border-gray-200" />
- <div className="px-10 py-4 flex justify-between items-center">
+ <div className="px-10 py-4 flex flex-col sm:flex-row space-y-3 sm:space-y-0 justify-between items-center text-center sm:text-left">
{plan ? (
plan === "Pro 1M" ? (
<p className="text-gray-500 text-sm">
diff --git a/components/home/pricing.tsx b/components/home/pricing.tsx
index 6369409a5d..844aa1214e 100644
--- a/components/home/pricing.tsx
+++ b/components/home/pricing.tsx
@@ -23,7 +23,7 @@ const pricingItems = [
"Just bring any domain you own and turn it into a custom domain link shortener for free.",
},
{ text: "Unlimited branded links" },
- { text: "5 project" },
+ { text: "5 projects" },
{
text: "Root domain redirect",
footnote:
diff --git a/lib/cron.ts b/lib/cron.ts
index 829c10a199..be9f0e3a41 100644
--- a/lib/cron.ts
+++ b/lib/cron.ts
@@ -18,7 +18,7 @@ export const handleDomainUpdates = async (
(new Date().getTime() - new Date(createdAt).getTime()) / (1000 * 3600 * 24)
);
- if (invalidDays > 7) {
+ if (invalidDays > 25) {
await log(`Domain *${domain}* is invalid for ${invalidDays} days`);
}