mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 19:07:08 -04:00
ReviewDB: allow deleting reviews on own profile
This commit is contained in:
parent
f66e35b658
commit
664dd0a992
3 changed files with 12 additions and 8 deletions
|
@ -79,6 +79,7 @@ export default function ReviewsView({
|
|||
refetch={refetch}
|
||||
reviews={reviewData!.reviews}
|
||||
hideOwnReview={hideOwnReview}
|
||||
profileId={discordId}
|
||||
/>
|
||||
|
||||
{showInput && (
|
||||
|
@ -93,7 +94,7 @@ export default function ReviewsView({
|
|||
);
|
||||
}
|
||||
|
||||
function ReviewList({ refetch, reviews, hideOwnReview }: { refetch(): void; reviews: Review[]; hideOwnReview: boolean; }) {
|
||||
function ReviewList({ refetch, reviews, hideOwnReview, profileId }: { refetch(): void; reviews: Review[]; hideOwnReview: boolean; profileId: string; }) {
|
||||
const myId = UserStore.getCurrentUser().id;
|
||||
|
||||
return (
|
||||
|
@ -104,6 +105,7 @@ function ReviewList({ refetch, reviews, hideOwnReview }: { refetch(): void; revi
|
|||
key={review.id}
|
||||
review={review}
|
||||
refetch={refetch}
|
||||
profileId={profileId}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue