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.

Fix feedback input div resize

Steven Tey4ac3832a54e4
diff --git a/components/layout/home/index.tsx b/components/layout/home/index.tsx
index fc0fd59a5c..5f6e4853ef 100644
--- a/components/layout/home/index.tsx
+++ b/components/layout/home/index.tsx
@@ -44,7 +44,11 @@ export default function HomeLayout({
{!session && status !== "loading" ? (
<motion.a
{...FADE_IN_ANIMATION_SETTINGS}
- href="https://app.dub.sh/login"
+ href={
+ process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
+ ? "https://app.dub.sh/login"
+ : "http://app.localhost:3000/login"
+ }
className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black"
>
Sign in
@@ -52,7 +56,11 @@ export default function HomeLayout({
) : (
<motion.a
{...FADE_IN_ANIMATION_SETTINGS}
- href="https://app.dub.sh"
+ href={
+ process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
+ ? "https://app.dub.sh"
+ : "http://app.localhost:3000"
+ }
className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black"
>
Dashboard
diff --git a/components/stats/device-icon.tsx b/components/stats/device-icon.tsx
index a8143824e8..82a8167266 100644
--- a/components/stats/device-icon.tsx
+++ b/components/stats/device-icon.tsx
@@ -1,5 +1,5 @@
import BlurImage from "@/components/shared/blur-image";
-import { Apple, Chrome, Safari } from "components/shared/icons/devices";
+import { Apple, Chrome, Safari } from "@/components/shared/icons/devices";
import { DeviceTabs } from "@/lib/stats";
export default function DeviceIcon({
diff --git a/components/stats/feedback.tsx b/components/stats/feedback.tsx
index 42e76e736d..f72b3857f5 100644
--- a/components/stats/feedback.tsx
+++ b/components/stats/feedback.tsx
@@ -1,7 +1,6 @@
import { useState } from "react";
import { AnimatePresence, motion } from "framer-motion";
import { useSession } from "next-auth/react";
-import TextareaAutosize from "react-textarea-autosize";
import LoadingDots from "@/components/shared/icons/loading-dots";
import { CheckCircleFill } from "../shared/icons";
import { useDebouncedCallback } from "use-debounce";
@@ -98,11 +97,11 @@ export default function Feedback() {
>
FEEDBACK
</label>
- <TextareaAutosize
+ <textarea
name="feedback"
id="feedback"
- minRows={5}
required={true}
+ rows={6}
onKeyDown={handleKeyDown}
className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="What other data would you like to see?"
diff --git a/lib/upstash.ts b/lib/upstash.ts
index 1bb22b8d8e..91814da1ed 100644
--- a/lib/upstash.ts
+++ b/lib/upstash.ts
@@ -1,7 +1,6 @@
import { NextRequest, userAgent } from "next/server";
import { Ratelimit } from "@upstash/ratelimit";
import { Redis } from "@upstash/redis";
-import { LOCALHOST_GEO_DATA } from "@/lib/constants";
import { nanoid } from "@/lib/utils";
// Initiate Redis instance