Changeset e599341 for components/BuildCard.tsx
- Timestamp:
- 12/28/25 00:07:22 (7 months ago)
- Branches:
- main
- Children:
- 9c87509
- Parents:
- f7c0b0d
- File:
-
- 1 edited
-
components/BuildCard.tsx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/BuildCard.tsx
rf7c0b0d re599341 2 2 import { Card, CardMedia, CardContent, Typography, Box, Chip } from '@mui/material'; 3 3 import StarIcon from '@mui/icons-material/Star'; 4 import PersonIcon from '@mui/icons-material/Person';4 // import PersonIcon from '@mui/icons-material/Person'; 5 5 6 6 export default function BuildCard({ build, onClick }: { build: any, onClick: () => void }) { 7 const formattedPrice = new Intl.NumberFormat('en-US', { style: 'currency', currency: ' USD' }).format(build.total_price || 0);7 const formattedPrice = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'EUR' }).format(build.total_price || 0); 8 8 9 9 return ( … … 25 25 {/*Ne se renderira user-ot*/} 26 26 <Box sx={{ display: 'flex', alignItems: 'center', mb: 1, color: 'text.secondary' }}> 27 {/* <PersonIcon sx={{ fontSize: 16, mr: 0.5 }} />*/} 28 {/* <Typography variant="caption">{build.user || 'Unknown'}</Typography>*/} 29 <Typography variant="h6" gutterBottom noWrap title={build.cpu}>{build.cpu}</Typography> 30 <Typography variant="h6" gutterBottom noWrap title={build.gpu}>{build.gpu}</Typography> 27 {/* <PersonIcon sx={{ fontSize: 16, mr: 0.5 }} />*/} 28 {/* <Typography variant="caption">{build.user || 'Unknown'}</Typography>*/} 31 29 </Box> 32 30 … … 36 34 <StarIcon fontSize="small" sx={{ color: '#faaf00', mr: 0.5 }} /> 37 35 <Typography variant="body2" fontWeight="bold"> 38 {Number(build.avg _rating || 5).toFixed(1)}36 {Number(build.avgRating || 5).toFixed(1)} 39 37 </Typography> 40 38 </Box>
Note:
See TracChangeset
for help on using the changeset viewer.
