Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions admin/src/pages/Add.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,13 @@
<textarea
placeholder="Describe the product in detail..."
value={description}
maxLength={500}
onChange={(e) => setDescription(e.target.value)}
className="w-full h-32 bg-slate-700/40 border border-slate-600 rounded-lg px-4 py-3 text-lg placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-transparent transition-all resize-none"
/>
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400 text-right">
{reviewData.comment.length}/500 characters

Check failure on line 201 in admin/src/pages/Add.jsx

View workflow job for this annotation

GitHub Actions / Lint Admin

'reviewData' is not defined
</p>
</div>

{/* Category and Subcategory */}
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,13 @@ function Contact() {
onChange={handleInputChange}
placeholder="Describe your inquiry..."
rows="6"
maxLength={500}
className="w-full px-4 py-3 bg-white dark:bg-[#0f172a] border border-gray-200 dark:border-[#1f2a44] rounded-lg text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500 transition-all duration-200 resize-none"
required
/>
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400 text-right">
{formData.message.length}/500 characters
</p>
</div>

<button
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/ProductDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,12 @@ function ProductDetail() {
onChange={(e) => setReviewComment(e.target.value)}
placeholder="Write your review..."
rows="4"
maxLength={500}
className="w-full p-4 rounded-lg bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 text-slate-900 dark:text-white outline-none"
/>
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400 text-right">
{reviewComment.length}/500 characters
</p>

<div className="flex gap-3 mt-4">
<button
Expand Down
Loading