Skip to content

Commit

Permalink
Merge pull request #633 from bounswe/feature/FE/632/tab-modifications
Browse files Browse the repository at this point in the history
review fixed, tab icon, title modified.
  • Loading branch information
mtkamiloglu authored Dec 3, 2023
2 parents b392075 + 635d75c commit 35161d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ludos/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Ludos</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file added ludos/frontend/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ludos/frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Ludos",
"name": "Ludos Web App",
"icons": [
{
"src": "favicon.ico",
Expand Down
8 changes: 2 additions & 6 deletions ludos/frontend/src/components/Review.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function Review(data, index1) {
setDisliked(data.review.isDislikedByUser);
setLikeCount(data.review.likedUserCount);
setDislikeCount(data.review.dislikedUserCount);
console.log(data.review);
axios
.get(link, {
headers: {
Expand All @@ -37,13 +36,11 @@ function Review(data, index1) {
})
.then((response) => {
setUsername(response.data.username);

console.log(response.data);
})
.catch((error) => {
console.log(error);
});
}, [username]);
}, [username, data]);

const handleSubmit = (event) => {
event.preventDefault();
Expand All @@ -62,8 +59,7 @@ function Review(data, index1) {
data.review.content = review;
setEditReq(false);
})
.catch((error, request) => {
console.log(request);
.catch((error) => {
console.error("Error on making review:", error);
});
};
Expand Down

0 comments on commit 35161d1

Please sign in to comment.