Ignore:
Timestamp:
02/19/26 20:33:50 (5 months ago)
Author:
Tome <gjorgievtome@…>
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.
Message:

Merge remote-tracking branch 'origin/main'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/index/+Page.tsx

    rc586cbd r92fafb3  
    1010import BuildCard from '../../components/BuildCard';
    1111
    12 import {onGetApprovedBuilds, onGetAuthState, onCloneBuild} from '../+Layout.telefunc';
     12import {onGetApprovedBuilds, onGetAuthState} from '../+Layout.telefunc';
    1313
    1414export default function HomePage() {
     
    4646        }
    4747
    48         loadSite();
     48        void loadSite();
    4949    }, []);
    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     };
    5950
    6051    if (!data) return <Box sx={{p: 10, textAlign: 'center'}}>Loading Forge...</Box>;
     
    160151                currentUser={data.userId}
    161152                onClose={() => setSelectedBuildId(null)}
    162                 onClone={handleCloneWrapper}
    163153            />
    164154
Note: See TracChangeset for help on using the changeset viewer.