Ignore:
Timestamp:
12/28/25 00:07:22 (7 months ago)
Author:
Mihail <mihail2.naumov@…>
Branches:
main
Children:
9c87509
Parents:
f7c0b0d
Message:

Added frontend elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/BuildCard.tsx

    rf7c0b0d re599341  
    22import { Card, CardMedia, CardContent, Typography, Box, Chip } from '@mui/material';
    33import StarIcon from '@mui/icons-material/Star';
    4 import PersonIcon from '@mui/icons-material/Person';
     4// import PersonIcon from '@mui/icons-material/Person';
    55
    66export 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);
    88
    99    return (
     
    2525                {/*Ne se renderira user-ot*/}
    2626                <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>*/}
    3129                </Box>
    3230
     
    3634                        <StarIcon fontSize="small" sx={{ color: '#faaf00', mr: 0.5 }} />
    3735                        <Typography variant="body2" fontWeight="bold">
    38                             {Number(build.avg_rating || 5).toFixed(1)}
     36                            {Number(build.avgRating || 5).toFixed(1)}
    3937                        </Typography>
    4038                    </Box>
Note: See TracChangeset for help on using the changeset viewer.