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.

small nits

Steven Tey9319467b6ae3
diff --git a/apps/web/ui/analytics/index.tsx b/apps/web/ui/analytics/index.tsx
index fd41d3b168..983cb757ff 100644
--- a/apps/web/ui/analytics/index.tsx
+++ b/apps/web/ui/analytics/index.tsx
@@ -69,10 +69,10 @@ export default function Analytics({
const tagId = searchParams?.get("tagId") ?? undefined;
- // Default to last 30 days
+ // Default to last 24 hours
const { start, end } = useMemo(() => {
return {
- start: new Date(searchParams?.get("start") || subDays(new Date(), 30)),
+ start: new Date(searchParams?.get("start") || subDays(new Date(), 1)),
// Set to end of day or now if that's in the future
end: min([
diff --git a/packages/ui/src/date-picker/calendar.tsx b/packages/ui/src/date-picker/calendar.tsx
index 5817c80b6a..f00d29e972 100644
--- a/packages/ui/src/date-picker/calendar.tsx
+++ b/packages/ui/src/date-picker/calendar.tsx
@@ -101,7 +101,7 @@ function Calendar({
cell: "relative p-0 text-center focus-within:relative text-gray-900",
day: cn(
"relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900",
- "hover:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500",
+ "hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500",
),
day_today: "font-semibold",
day_selected: