- {app.fullDescription.split('\n').map((paragraph, index) => (
+ {details.fullDescription.split('\n').map((paragraph, index) => (
{paragraph}
@@ -232,7 +133,17 @@ export default function AppDetailPage() {
)}
- {/* Reviews Section */}
+ {/* Reviews Section - Coming Soon */}
+
+
+ {/*
+ Reviews section commented out for future implementation
+
Reviews & Ratings
@@ -243,124 +154,9 @@ export default function AppDetailPage() {
{showReviewForm ? "Cancel" : "Write Review"}
-
- {/* Rating Summary */}
-
-
-
-
- {parseFloat(app.averageRating || "0").toFixed(1)}
-
-
- {renderStars(parseFloat(app.averageRating || "0"))}
-
-
{app.totalReviews} reviews
-
-
-
- {getRatingDistribution().map(({ rating, count, percentage }) => (
-
-
{rating}
-
-
{Math.round(percentage)}%
-
- ))}
-
-
-
-
-
- {/* Review Form */}
- {showReviewForm && (
-
- )}
-
- {/* Individual Reviews */}
-
- {isLoadingReviews ? (
- [...Array(3)].map((_, i) => (
-
- ))
- ) : reviews.length === 0 ? (
-
-
No reviews yet. Be the first to review this app!
-
- ) : (
- reviews.map((review, index) => (
-
-
-
- {review.username.substring(0, 2).toUpperCase()}
-
-
-
- {review.username}
- {renderStars(review.rating)}
-
- {new Date(review.createdAt).toLocaleDateString()}
-
-
- {review.comment && (
-
{review.comment}
- )}
-
-
-
- ))
- )}
-
+ ... rest of reviews code ...