Skip to content

Commit

Permalink
Fix feedback input div resize
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Jan 21, 2023
1 parent 5c31810 commit 4ac3832
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
12 changes: 10 additions & 2 deletions components/layout/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,23 @@ 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
</motion.a>
) : (
<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
Expand Down
2 changes: 1 addition & 1 deletion components/stats/device-icon.tsx
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
5 changes: 2 additions & 3 deletions components/stats/feedback.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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?"
Expand Down
1 change: 0 additions & 1 deletion lib/upstash.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4ac3832

Please sign in to comment.