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 "use client" directive order

Steven Teyc7cce8993fe3
diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/form.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/form.tsx
index 471b11d48c..c14b9045ce 100644
--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/form.tsx
+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/form.tsx
@@ -1,9 +1,9 @@
-import { useActionState } from "react";
"use client";
import { AlertCircleFill } from "@/ui/shared/icons";
import { Button, useMediaQuery } from "@dub/ui";
import { useParams } from "next/navigation";
+import { useActionState } from "react";
import { useFormStatus } from "react-dom";
import { verifyPassword } from "./action";
diff --git a/apps/web/app/password/[linkId]/form.tsx b/apps/web/app/password/[linkId]/form.tsx
index 85857ad71c..6e20aa4350 100644
--- a/apps/web/app/password/[linkId]/form.tsx
+++ b/apps/web/app/password/[linkId]/form.tsx
@@ -1,9 +1,9 @@
-import { useActionState } from "react";
"use client";
import { AlertCircleFill } from "@/ui/shared/icons";
import { Button, useMediaQuery } from "@dub/ui";
import { useParams } from "next/navigation";
+import { useActionState } from "react";
import { useFormStatus } from "react-dom";
import { verifyPassword } from "./action";