Changeset 546a194 for pages/completed-builds/+Page.tsx
- Timestamp:
- 02/10/26 14:20:22 (5 months ago)
- Branches:
- main
- Children:
- 3a9c59c, 92fafb3
- Parents:
- f727252
- File:
-
- 1 edited
-
pages/completed-builds/+Page.tsx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pages/completed-builds/+Page.tsx
rf727252 r546a194 9 9 import BuildCard from '../../components/BuildCard'; 10 10 import BuildDetailsDialog from '../../components/BuildDetailsDialog'; 11 import { onGetApprovedBuilds, on CloneBuild, onGetAuthState } from '../+Layout.telefunc';11 import { onGetApprovedBuilds, onGetAuthState } from '../+Layout.telefunc'; 12 12 13 13 export default function CompletedBuildsPage() { … … 65 65 66 66 useEffect(() => { 67 loadBuilds();67 void loadBuilds(); 68 68 }, [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 };78 69 79 70 return ( … … 102 93 value={searchQuery} 103 94 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 } 106 99 }} 107 100 sx={{ mb: 3 }} … … 193 186 currentUser={userId} 194 187 onClose={() => setSelectedBuildId(null)} 195 onClone={handleClone}196 188 /> 197 189 </Container>
Note:
See TracChangeset
for help on using the changeset viewer.
