feat: update ExtrasSelector and GrowTentKonfigurator for VAT display and extras handling

- Refactored ExtrasSelector to include VAT information for each extra, enhancing clarity for users.
- Removed unused extras data from configuratorData.js to streamline the codebase.
- Updated GrowTentKonfigurator to dynamically retrieve extras from cached data, ensuring accurate pricing and VAT display for selected items.
- Improved UI layout for price and VAT information across various components for better user experience.
This commit is contained in:
sebseb7
2025-09-04 10:31:59 +02:00
parent 3660f80277
commit 479e328e7c
3 changed files with 54 additions and 71 deletions

View File

@@ -67,9 +67,16 @@ class ExtrasSelector extends Component {
sx={{ margin: 0 }}
onClick={(e) => e.stopPropagation()}
/>
<Typography variant="h6" sx={{ color: '#2e7d32', fontWeight: 'bold' }}>
{this.formatPrice(extra.price)}
</Typography>
<Box sx={{ textAlign: 'right' }}>
<Typography variant="h6" sx={{ color: '#2e7d32', fontWeight: 'bold' }}>
{this.formatPrice(extra.price)}
</Typography>
{extra.vat && (
<Typography variant="caption" sx={{ color: '#77aa77', fontSize: '0.6em' }}>
(incl. {extra.vat}% MwSt.,*)
</Typography>
)}
</Box>
</Box>
<Typography variant="h6" gutterBottom sx={{ fontWeight: 'bold' }}>