Chatting Page
-
+
diff --git a/sweetmeet/components/Card.js b/sweetmeet/components/Card.js
index 5c7cf6c..7136d2f 100644
--- a/sweetmeet/components/Card.js
+++ b/sweetmeet/components/Card.js
@@ -9,6 +9,7 @@ import {
useColorModeValue,
HStack,
Stack,
+ Image
} from '@chakra-ui/react';
import { BsArrowUpRight, BsHeartFill, BsHeart } from 'react-icons/bs';
@@ -26,68 +27,68 @@ export default function PostWithLike({disable,data}) {
return (
-
+ bg={' #F5F5F5'}
+ borderBottomRadius={'10px'}
+ >
+
-
-
-
+
+
+
{data?data.name:null}
-
+
+
+
+
-
- {data?data.age:null},{data?data.gender:null}
-
+ display={'flex'}
+ justifyContent={'left'}
+ alignItems={'center'}>
+ {data?data.age:null},{data?data.gender:null}
+
+
-
+
+
{data.desc}
-
-
- My hobbies: {data.hobbies?data.hobbies.join(","):null}
- Favourite cuisine:{data.food?data.food:null}
-
-
+
+
+ My hobbies: {data.hobbies?data.hobbies.join(","):null}
+ Favourite cuisine: {data.food?data.food:null}
+
+
+
setLiked(!liked)}>
{liked ? (
-
+
) : (
-
+
)}
-
+
Chat
-
+
);
diff --git a/sweetmeet/components/Conversation.js b/sweetmeet/components/Conversation.js
index 4c1d11e..b04f963 100644
--- a/sweetmeet/components/Conversation.js
+++ b/sweetmeet/components/Conversation.js
@@ -9,12 +9,13 @@ export default function Conversation({ name, conversation, currentUser }) {
- {name}
+ {name}
diff --git a/sweetmeet/components/Messenger.js b/sweetmeet/components/Messenger.js
index 22ca500..311e296 100644
--- a/sweetmeet/components/Messenger.js
+++ b/sweetmeet/components/Messenger.js
@@ -10,6 +10,7 @@ import { io } from "socket.io-client";
import axios from "axios";
import Navbar from "./Navbar";
import Card from "./Card";
+import { BsArrowLeftShort} from 'react-icons/bs';
let conversationId = "";
@@ -159,20 +160,13 @@ export default function Messenger({ data }) {
className={styles.chatMenu}
bgGradient={"linear(to-r, red.400, orange.500)"}
>
-
+
My Profile
-
+
{show ? (
-
- {data &&
- data.map((item, index) => (
-
- ))}
-
- ) : (
<>
@@ -191,17 +185,20 @@ export default function Messenger({ data }) {
) : (
-
+
Start a conversation{" "}
-
- setShow(true)}
- fontSize={"18px"}
- fontWeight={"bold"}
+
+
+
+ setShow(false)}
+ fontSize={"20px"}
cursor={"pointer"}
- >
+ fontWeight={'semibold'}
+ >
Go back
-
+
+
)}
@@ -219,7 +216,7 @@ export default function Messenger({ data }) {
- Most Recent
+ Most Recent
{data &&
data.map((el, index) => (
@@ -241,6 +238,13 @@ export default function Messenger({ data }) {
))}
>
+ ):(
+
+ {data &&
+ data.map((item, index) => (
+
+ ))}
+
)}