Changeset e599341 for components/BuildDetailsDialog.tsx
- Timestamp:
- 12/28/25 00:07:22 (7 months ago)
- Branches:
- main
- Children:
- 9c87509
- Parents:
- f7c0b0d
- File:
-
- 1 edited
-
components/BuildDetailsDialog.tsx (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/BuildDetailsDialog.tsx
rf7c0b0d re599341 2 2 import { 3 3 Dialog, DialogTitle, DialogContent, Button, Grid, Box, Typography, 4 IconButton, Tab, Tabs, Table, TableBody, TableCell, TableRow, Rating, TextField, Avatar, Divider, Chip, CardMedia4 IconButton, Tab, Tabs, Table, TableBody, TableCell, TableRow, Rating, TextField, Avatar, Chip 5 5 } from '@mui/material'; 6 6 import CloseIcon from '@mui/icons-material/Close'; … … 8 8 import FavoriteIcon from '@mui/icons-material/Favorite'; 9 9 import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder'; 10 import PersonIcon from "@mui/icons-material/Person"; 10 11 import { onGetBuildDetails, onSetReview, onToggleFavorite } from '../pages/+Layout.telefunc'; 11 import PersonIcon from "@mui/icons-material/Person";12 12 13 13 const formatPrice = (price: any) => new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(Number(price) || 0); … … 24 24 if (open && buildId) { 25 25 setLoading(true); 26 setReviewText(""); 27 setRatingVal(5); 28 26 29 onGetBuildDetails({ buildId }) 27 30 .then(data => { … … 43 46 if (!currentUser) return alert("Please login to review."); 44 47 await onSetReview({ buildId, content: reviewText }); 48 49 setReviewText(""); 45 50 46 51 const refreshed = await onGetBuildDetails({ buildId }); … … 81 86 <Box sx={{ p: 3 }}> 82 87 {tabIndex === 0 && ( 83 <Grid container spacing={ 4}>88 <Grid container spacing={2}> 84 89 <Grid item xs={12} md={8}> 85 90 <Table size="small"> … … 88 93 <TableRow key={comp.id}> 89 94 <TableCell sx={{ width: 50 }}> 90 {/*<Avatar*/} 91 {/* src={comp.img_url || undefined}*/} 92 {/* variant="rounded"*/} 93 {/* sx={{ width: 40, height: 40, bgcolor: '#ff8201' }}*/} 94 {/*>*/} 95 {/* {comp.type?.[0]?.toUpperCase()}*/} 96 {/*</Avatar>*/} 97 {/*<PersonIcon sx={{ fontSize: 16 }} />*/} 98 <CardMedia 99 component="img" 100 height="50" 101 width="50" 102 image={"https://placehold.co/400x400?text=CPU"} 103 104 /> 95 <Avatar 96 src={comp.img_url || undefined} 97 variant="rounded" 98 sx={{ width: 45, height: 45, bgcolor: '#ff8201'}} 99 > 100 {comp.type?.substring(0, 3)?.toUpperCase()} 101 </Avatar> 105 102 </TableCell> 106 103 <TableCell>
Note:
See TracChangeset
for help on using the changeset viewer.
