Changeset 92fafb3 for pages/completed-builds/+Page.tsx
- Timestamp:
- 02/19/26 20:33:50 (5 months ago)
- Branches:
- main
- Children:
- 2c7b9c8
- Parents:
- c586cbd (diff), 546a194 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
pages/completed-builds/+Page.tsx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pages/completed-builds/+Page.tsx
rc586cbd r92fafb3 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.
