diff options
Diffstat (limited to 'apps/web/app/(dash)/header/newChatButton.tsx')
| -rw-r--r-- | apps/web/app/(dash)/header/newChatButton.tsx | 26 |
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; |