aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(dash)/header/newChatButton.tsx
diff options
context:
space:
mode:
authorSamrat Malisetti <[email protected]>2024-07-19 11:19:50 -0700
committerGitHub <[email protected]>2024-07-19 11:19:50 -0700
commit581ce2780ea8b8b931539adcbddacf1d322fd027 (patch)
tree4813158cd7aa3abb44c7e3884cfd4415d8b5148c /apps/web/app/(dash)/header/newChatButton.tsx
parentfixed mbile layout (diff)
parentDisabled sentry for now because of unreasonably large bundle size (diff)
downloadsupermemory-581ce2780ea8b8b931539adcbddacf1d322fd027.tar.xz
supermemory-581ce2780ea8b8b931539adcbddacf1d322fd027.zip
Merge branch 'main' into fix/mobile-layout
Diffstat (limited to 'apps/web/app/(dash)/header/newChatButton.tsx')
-rw-r--r--apps/web/app/(dash)/header/newChatButton.tsx26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/web/app/(dash)/header/newChatButton.tsx b/apps/web/app/(dash)/header/newChatButton.tsx
index 0e9e1c5a..a634ab41 100644
--- a/apps/web/app/(dash)/header/newChatButton.tsx
+++ b/apps/web/app/(dash)/header/newChatButton.tsx
@@ -7,21 +7,21 @@ import { usePathname } from "next/navigation";
import React from "react";
function NewChatButton() {
- const path = usePathname();
+ const path = usePathname();
- if (path.startsWith("/chat")) {
- return (
- <Link
- href="/home"
- className="flex duration-200 items-center text-[#7D8994] hover:bg-[#1F2429] text-[13px] gap-2 px-3 py-2 rounded-xl"
- >
- <Image src={ChatIcon} alt="Chat icon" className="w-5" />
- Start new chat
- </Link>
- );
- }
+ if (path.startsWith("/chat")) {
+ return (
+ <Link
+ href="/home"
+ className="flex duration-200 items-center text-[#7D8994] hover:bg-[#1F2429] text-[13px] gap-2 px-3 py-2 rounded-xl"
+ >
+ <Image src={ChatIcon} alt="Chat icon" className="w-5" />
+ Start new chat
+ </Link>
+ );
+ }
- return null;
+ return null;
}
export default NewChatButton;