Files
WooNooW/admin-spa
dwindown e52429603b fix: Email Preview Issues - All 5 Fixed! 🔧
## Issues Fixed:

### 1. Button Not Rendering 
- Buttons now use custom primary_color
- Button text uses button_text_color
- Outline buttons use secondary_color
- Applied to .button and .button-outline classes

### 2. Double Hash in Order Number 
- Changed order_number from "#12345" to "12345"
- Templates already have # prefix
- Prevents ##12345 display

### 3. Duplicate Icons in Social Selector 
- Removed duplicate icon from SelectTrigger
- SelectValue already shows the icon
- Clean single icon display

### 4. Header/Footer Not Reflecting Customization 
- Fetch email settings in EditTemplate
- Apply logo_url or header_text to header
- Apply footer_text with {current_year} replacement
- Render social icons in footer

### 5. Hero Heading Not Using Custom Color 
- Apply hero_text_color to all hero card types
- .card-hero, .card-success, .card-highlight
- All text and headings use custom color

## Preview Now Shows:
 Custom logo (if set) or header text
 Custom hero gradient colors
 Custom hero text color (white/custom)
 Custom button colors (primary & secondary)
 Custom footer text with {current_year}
 Social icons in footer

## Files:
- `routes/Settings/Notifications/EditTemplate.tsx` - Preview integration
- `routes/Settings/Notifications/EmailCustomization.tsx` - UI fix

Everything synced! Preview matches actual emails! 🎉
2025-11-13 14:05:39 +07:00
..
2025-11-13 14:05:39 +07:00
2025-11-13 10:13:17 +07:00