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.

remove injectStyle

Steven Tey68a20a4b1e62
diff --git a/apps/web/app/app.dub.co/(auth)/login/form.tsx b/apps/web/app/app.dub.co/(auth)/login/form.tsx
index 82d54f05ff..a9cd5a0b23 100644
--- a/apps/web/app/app.dub.co/(auth)/login/form.tsx
+++ b/apps/web/app/app.dub.co/(auth)/login/form.tsx
@@ -26,7 +26,7 @@ export default function LoginForm() {
}, [searchParams]);
return (
- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
+ <>
<Button
text="Continue with Google"
onClick={() => {
@@ -192,6 +192,6 @@ export default function LoginForm() {
.
</p>
)}
- </div>
+ </>
);
}
diff --git a/apps/web/app/app.dub.co/(auth)/login/page.tsx b/apps/web/app/app.dub.co/(auth)/login/page.tsx
index 8c97602d04..6db920c483 100644
--- a/apps/web/app/app.dub.co/(auth)/login/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/login/page.tsx
@@ -27,18 +27,20 @@ export default function LoginPage() {
Start creating short links with superpowers.
</p>
</div>
- <Suspense
- fallback={
- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
- <Button disabled={true} text="" variant="secondary" />
- <Button disabled={true} text="" variant="secondary" />
- <Button disabled={true} text="" variant="secondary" />
- <div className="mx-auto h-5 w-3/4 rounded-lg bg-gray-100" />
- </div>
- }
- >
- <LoginForm />
- </Suspense>
+ <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
+ <Suspense
+ fallback={
+ <>
+ <Button disabled={true} text="" variant="secondary" />
+ <Button disabled={true} text="" variant="secondary" />
+ <Button disabled={true} text="" variant="secondary" />
+ <div className="mx-auto h-5 w-3/4 rounded-lg bg-gray-100" />
+ </>
+ }
+ >
+ <LoginForm />
+ </Suspense>
+ </div>
</div>
);
}
diff --git a/apps/web/app/app.dub.co/(auth)/register/form.tsx b/apps/web/app/app.dub.co/(auth)/register/form.tsx
index 001334e01f..fe20994345 100644
--- a/apps/web/app/app.dub.co/(auth)/register/form.tsx
+++ b/apps/web/app/app.dub.co/(auth)/register/form.tsx
@@ -17,7 +17,7 @@ export default function RegisterForm() {
const [clickedSSO, setClickedSSO] = useState(false);
return (
- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
+ <>
<Button
text="Continue with Google"
onClick={() => {
@@ -98,6 +98,6 @@ export default function RegisterForm() {
</Link>
.
</p>
- </div>
+ </>
);
}
diff --git a/apps/web/app/app.dub.co/(auth)/register/page.tsx b/apps/web/app/app.dub.co/(auth)/register/page.tsx
index efe598a5ac..12ae3c2e0b 100644
--- a/apps/web/app/app.dub.co/(auth)/register/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/register/page.tsx
@@ -27,17 +27,19 @@ export default function RegisterPage() {
Get started for free. No credit card required.
</p>
</div>
- <Suspense
- fallback={
- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
- <Button disabled={true} text="" variant="secondary" />
- <Button disabled={true} text="" variant="secondary" />
- <div className="mx-auto h-5 w-3/4 rounded-lg bg-gray-100" />
- </div>
- }
- >
- <RegisterForm />
- </Suspense>
+ <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 sm:px-16">
+ <Suspense
+ fallback={
+ <>
+ <Button disabled={true} text="" variant="secondary" />
+ <Button disabled={true} text="" variant="secondary" />
+ <div className="mx-auto h-5 w-3/4 rounded-lg bg-gray-100" />
+ </>
+ }
+ >
+ <RegisterForm />
+ </Suspense>
+ </div>
</div>
);
}
diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.ts
index f4a96bcd87..6a8a1e5cb0 100644
--- a/packages/ui/tsup.config.ts
+++ b/packages/ui/tsup.config.ts
@@ -11,6 +11,5 @@ export default defineConfig((options: Options) => ({
dts: true,
minify: true,
external: ["react"],
- injectStyle: true,
...options,
}));