Changeset f727252 for pages/index/+Page.tsx
- Timestamp:
- 02/10/26 01:23:31 (5 months ago)
- Branches:
- main
- Children:
- 546a194
- Parents:
- b348db4
- File:
-
- 1 edited
-
pages/index/+Page.tsx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pages/index/+Page.tsx
rb348db4 rf727252 10 10 import BuildCard from '../../components/BuildCard'; 11 11 12 import {onGetApprovedBuilds, onGetAuthState , onCloneBuild} from '../+Layout.telefunc';12 import {onGetApprovedBuilds, onGetAuthState} from '../+Layout.telefunc'; 13 13 14 14 export default function HomePage() { … … 46 46 } 47 47 48 loadSite();48 void loadSite(); 49 49 }, []); 50 51 const handleCloneWrapper = async (buildId: number) => {52 if (!data?.isLoggedIn) return alert("Please login to clone builds!");53 if (confirm(`Clone this build to your dashboard?`)) {54 await onCloneBuild({buildId});55 alert("Build cloned! Check your dashboard.");56 setSelectedBuildId(null);57 }58 };59 50 60 51 if (!data) return <Box sx={{p: 10, textAlign: 'center'}}>Loading Forge...</Box>; … … 160 151 currentUser={data.userId} 161 152 onClose={() => setSelectedBuildId(null)} 162 onClone={handleCloneWrapper}163 153 /> 164 154
Note:
See TracChangeset
for help on using the changeset viewer.
