Skip to content

Commit c545abc

Browse files
committed
Refactor Chat and Navbar components
1 parent 054e0fc commit c545abc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

client/src/components/Chat/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Message {
1717
isTypingFinished?: boolean // Track typing completion per message
1818
}
1919

20-
export default function Chat() {
20+
export function Chat() {
2121
const [messages, setMessages] = useState<Array<Message>>([])
2222
const scrollAreaRef = useRef<HTMLDivElement>(null)
2323

client/src/components/Navbar/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface Link {
1515
to: string;
1616
}
1717

18-
export default function Navbar() {
18+
export function Navbar() {
1919
const links: Link[] = [
2020
{
2121
title: "Home",

client/src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect } from 'react';
22
import { useNavigate } from 'react-router-dom';
3-
import Chat from '@/components/Chat/Chat';
3+
import { Chat } from '@/components/Chat/Chat';
44

55
const Home = () => {
66
const navigate = useNavigate();

client/src/pages/Landing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { HoverBorderGradient } from "@/components/ui/hover-border-gradient";
33
import Footer from '@/components/Footer/Footer';
4-
import Navbar from "@/components/Navbar/Navbar";
4+
import { Navbar } from "@/components/Navbar/Navbar";
55
import { Hero } from '@/components/Hero/Hero';
66
import { Cover } from '@/components/ui/cover';
77
import { useEffect } from 'react';

0 commit comments

Comments
 (0)