Ignore:
Timestamp:
02/10/26 14:20:22 (5 months ago)
Author:
Mihail <mihail2.naumov@…>
Branches:
main
Children:
3a9c59c, 92fafb3
Parents:
f727252
Message:

Optimized sites (changed from deprecated Grid to Box+CSS Grid)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/completed-builds/+Page.tsx

    rf727252 r546a194  
    99import BuildCard from '../../components/BuildCard';
    1010import BuildDetailsDialog from '../../components/BuildDetailsDialog';
    11 import { onGetApprovedBuilds, onCloneBuild, onGetAuthState } from '../+Layout.telefunc';
     11import { onGetApprovedBuilds, onGetAuthState } from '../+Layout.telefunc';
    1212
    1313export default function CompletedBuildsPage() {
     
    6565
    6666    useEffect(() => {
    67         loadBuilds();
     67        void loadBuilds();
    6868    }, [sortBy, searchQuery]);
    69 
    70     const handleClone = async (buildId: number) => {
    71         if (!userId) return alert("Please login to clone builds!");
    72         if (confirm(`Clone this build?`)) {
    73             await onCloneBuild({buildId});
    74             alert("Build cloned!");
    75             setSelectedBuildId(null);
    76         }
    77     };
    7869
    7970    return (
     
    10293                            value={searchQuery}
    10394                            onChange={(e) => setSearchQuery(e.target.value)}
    104                             InputProps={{
    105                                 startAdornment: <InputAdornment position="start"><SearchIcon /></InputAdornment>,
     95                            slotProps={{
     96                                input: {
     97                                    startAdornment: <InputAdornment position="start"><SearchIcon /></InputAdornment>,
     98                                }
    10699                            }}
    107100                            sx={{ mb: 3 }}
     
    193186                currentUser={userId}
    194187                onClose={() => setSelectedBuildId(null)}
    195                 onClone={handleClone}
    196188            />
    197189        </Container>
Note: See TracChangeset for help on using the changeset viewer.