fix: resolve email shortcode rendering and TypeScript errors

- Fix EmailRenderer.php: add missing \ namespace prefix on instanceof
  checks for WC_Order, WC_Product, WC_Customer in get_variables()
  (root cause of unrendered {order_number} etc. in all order emails)
- Fix ProductCard.tsx: remove deprecated isClassic/isModern/isBoutique
  branches, consolidate into single settings-driven render path
- Fix AccountLayout.tsx: add missing return statement
- Remove orphaned Layout.tsx (imported nothing, referenced missing Header)
This commit is contained in:
Dwindi Ramadhana
2026-03-12 19:10:56 +07:00
parent 3f2019bc7c
commit e70aa1f554
4 changed files with 76 additions and 344 deletions

View File

@@ -201,7 +201,8 @@ export function AccountLayout({ children }: AccountLayoutProps) {
);
// Responsive layout: Tabs on mobile, Sidebar on desktop
<div className="py-8">
return (
<div className="py-8">
{/* Mobile: Tab Navigation */}
{renderTabNav()}
@@ -216,6 +217,7 @@ export function AccountLayout({ children }: AccountLayoutProps) {
</div>
</div>
</div>
</div>
</div>
);
}