Fix member dashboard issues and webinar datetime loading

- Remove payment_provider filter to show all paid products (webinars now appear)
- Fix webinar event_start field loading in AdminProducts (format to datetime-local)
- Update order status badge colors for better visibility (green for paid, amber for pending)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-25 17:56:51 +07:00
parent f381c68371
commit fe9a8bde1d
3 changed files with 5 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ export default function AdminProducts() {
const generateSlug = (title: string) => title.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/(^-|-$)/g, '');
const handleEdit = (product: Product) => {
const handleEdit = (product: Product) => {
setEditingProduct(product);
setForm({
title: product.title,
@@ -88,7 +88,7 @@ export default function AdminProducts() {
content: product.content || '',
meeting_link: product.meeting_link || '',
recording_url: product.recording_url || '',
event_start: product.event_start,
event_start: product.event_start ? product.event_start.slice(0, 16) : null,
duration_minutes: product.duration_minutes,
price: product.price,
sale_price: product.sale_price,