Skip to content

Commit

Permalink
Merge pull request #55 from CS3219-AY2425S1/ui-update
Browse files Browse the repository at this point in the history
UI update
  • Loading branch information
guowei42 authored Nov 13, 2024
2 parents 62d797c + 5718737 commit 185c951
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/src/components/HomePage/BasicCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function BasicCard({ title, description, label, link }) {
borderRadius: "16px"
}}
>
<CardContent sx={{ border: "1px solid red", flex: "1 1 auto" }}>
<CardContent sx={{ flex: "1 1 auto" }}>
<Typography
variant="h4"
component="div"
Expand All @@ -35,7 +35,7 @@ export default function BasicCard({ title, description, label, link }) {
{description}
</Typography>
</CardContent>
<CardActions sx={{ justifyContent: "center", border: "1px solid red" }}>
<CardActions sx={{ justifyContent: "center" }}>
<Button size="small" variant="outlined" onClick={handleButtonClick}>
{label}
</Button>
Expand Down
12 changes: 9 additions & 3 deletions server/chat-service/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ io.on("connection", (socket) => {
socket.on("disconnect", (reason, details) => {
console.log("User disconnected from chat service:", socket.id);
console.log("Reason", reason);
console.log("Message", details.message);
console.log("Description", details.description);
console.log("Context", details.context);
if (details && details.message) {
console.log("Message", details.message);
}
if (details && details.description) {
console.log("Description", details.description);
}
if (details && details.context) {
console.log("Context", details.context);
}
});
});

Expand Down
12 changes: 9 additions & 3 deletions server/collaboration-service/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ io.on("connection", (socket) => {
socket.on("disconnect", (reason, details) => {
console.log("Client disconnected");
console.log("Reason", reason);
console.log("Message", details.message);
console.log("Description", details.description);
console.log("Context", details.context);
if (details && details.message) {
console.log("Message", details.message);
}
if (details && details.description) {
console.log("Description", details.description);
}
if (details && details.context) {
console.log("Context", details.context);
}
});
});

Expand Down

0 comments on commit 185c951

Please sign in to comment.