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.

Update nav-logo.tsx

Steven Teyca6d17e49b8c
diff --git a/packages/ui/src/nav-logo.tsx b/packages/ui/src/nav-logo.tsx
index 4446a9903f..aabc017bfa 100644
--- a/packages/ui/src/nav-logo.tsx
+++ b/packages/ui/src/nav-logo.tsx
@@ -83,7 +83,7 @@ export function NavLogo({
setIsPopoverOpen(false);
}}
>
- <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]">
+ <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black">
<ContextMenuButton
text="Copy Logo as SVG"
variant="outline"
@@ -107,7 +107,12 @@ export function NavLogo({
<ContextMenuButton
text="Home Page"
variant="outline"
- onClick={() => window.open("https://dub.co", "_blank")}
+ onClick={() =>
+ window.open(
+ `https://dub.co${isInApp ? "/home" : ""}`,
+ "_blank",
+ )
+ }
icon={<Home strokeWidth={2} className="h-4 w-4" />}
/>
) : (