Skip to content

Commit 80a33ec

Browse files
committed
Refactor Chat and Navbar components to use arrow function syntax
1 parent c545abc commit 80a33ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 function Chat() {
20+
export const Chat: React.FC = () => {
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 function Navbar() {
18+
export const Navbar: React.FC = () => {
1919
const links: Link[] = [
2020
{
2121
title: "Home",

0 commit comments

Comments
 (0)