diff --git a/web/src/component/ReviewEntry.js b/web/src/component/ReviewEntry.js index 851361e..04546be 100644 --- a/web/src/component/ReviewEntry.js +++ b/web/src/component/ReviewEntry.js @@ -1,9 +1,7 @@ import { Link } from "react-router-dom"; -import { useNavigate } from "react-router"; import { convertIntToDateTime } from "./Common"; function ReviewEntry(props) { - let navigate = useNavigate(); return (

@@ -12,19 +10,15 @@ function ReviewEntry(props) { {" "} wrote on {convertIntToDateTime(props.review.created_at)}{" "} {props.review.updated_at !== 0 && - "(modified on " + convertIntToDateTime(props.review.updated_at) + ")"} + "(modified on " + + convertIntToDateTime(props.review.updated_at) + + ")"}{" "} + {(props.user.role === 1 || props.review.user.id === props.user.id) && + props.user.role !== 0 && + Edit + }

{props.review.content}

- {(props.user.role === 1 || props.review.user.id === props.user.id) && - props.user.role !== 0 && ( - - )}
); }