From 20e9c9bd0edc5aa81632f9df55f12c93853e5149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= Date: Fri, 5 May 2023 20:49:41 +0200 Subject: [PATCH] refactor: Chat Took 2 minutes --- src/pages/chat/index.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/pages/chat/index.tsx b/src/pages/chat/index.tsx index 9fda642..013d516 100644 --- a/src/pages/chat/index.tsx +++ b/src/pages/chat/index.tsx @@ -1,17 +1,20 @@ -import {Button, Text} from '@chakra-ui/react'; +import {Button} from '@chakra-ui/react'; import {useSession} from 'next-auth/react'; import {useRouter} from 'next/router'; export default function Chat() { const router = useRouter(); - const {data: session, status} = useSession() + const {data: session, status} = useSession(); if (session) - return ( - <> - { - session.user.ChatID.map((id: string, index: number) => ) - } - - ) + return ( + <> + {session.user.ChatID.map( + (id: string, index: number) => ( + + ), + )} + + ); } \ No newline at end of file