Changeset 9d40151 for pages/forge/+Page.tsx
- Timestamp:
- 02/25/26 20:46:23 (5 months ago)
- Branches:
- main
- Children:
- ad3c219
- Parents:
- 4f2900a
- File:
-
- 1 edited
-
pages/forge/+Page.tsx (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pages/forge/+Page.tsx
r4f2900a r9d40151 2 2 import { 3 3 Container, Paper, Typography, Box, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, 4 Button, IconButton, Avatar, TextField, Grid,Chip, CircularProgress,4 Button, IconButton, Avatar, TextField, Chip, CircularProgress, 5 5 Menu, MenuItem, ListItemIcon, Dialog, DialogTitle, DialogContent, DialogActions 6 6 } from '@mui/material'; … … 74 74 if (buildId && buildName.trim()) { 75 75 const timeoutId = setTimeout(() => { 76 saveBuildState({buildId, name: buildName.trim(), description}); 76 saveBuildState({buildId, name: buildName.trim(), description}).catch(() => { 77 }); 77 78 }, 1000); 78 79 … … 326 327 const slot = slots.find(s => s.id === slotId); 327 328 if (slot?.component) { 328 handleRemovePart(slotId); 329 handleRemovePart(slotId).catch(() => { 330 }); 329 331 } 330 332 setSlots(prev => prev.filter(s => s.id !== slotId)); … … 388 390 severity: 'error' 389 391 }); 392 return; 390 393 } finally { 391 394 setIsSubmitting(false); … … 402 405 <Paper sx={{p: 4, mb: 0, bgcolor: '#ff8201', border: '1px solid #1e1e1e', color: 'white'}}> 403 406 <Typography variant="h4" align="center" fontWeight="bold">Forge Your Machine</Typography> 404 <Grid container spacing={2} justifyContent="center" sx={{mt: 2}}> 405 <Grid item xs={12} md={6}> 406 <TextField 407 fullWidth 408 label="Build Name *" 409 value={buildName} 410 onChange={e => setBuildName(e.target.value)} 411 sx={{bgcolor: '#1e1e1e', borderRadius: 1, color: 'white'}} 412 /> 413 </Grid> 414 </Grid> 407 <Box sx={{display: 'flex', justifyContent: 'center', mt: 2}}> 408 <TextField 409 label="Build Name *" 410 value={buildName} 411 onChange={e => setBuildName(e.target.value)} 412 sx={{bgcolor: '#1e1e1e', textAlign: 'center', borderRadius: 1, color: 'white', width: '200px'}} 413 /> 414 </Box> 415 415 416 </Paper> 416 417 … … 580 581 sx: { 581 582 position: 'absolute', 582 top: ' 30%',583 top: '46%', 583 584 // left: '50%', 584 585 // transform: 'translate(50%, +50%)',
Note:
See TracChangeset
for help on using the changeset viewer.
