Refactor ProjectsManager.cloneProject to accept an options object

This commit is contained in:
Alex Gleason committed 2025-12-23 01:45:12 -06:00
1 parent b99c20c7f7
commit 8b8958f7c8
4 files changed
+26 -6

No files matched your search

+4 -1
View File
@@ -41,7 +41,10 @@ export function RepositoryCard({ repo }: RepositoryCardProps) {
await projectsManager.init();
// Clone the repository using the Nostr URI
const project = await projectsManager.cloneProject(repo.name, nostrURI.toString());
const project = await projectsManager.cloneProject({
name: repo.name,
repoUrl: nostrURI.toString(),
});
toast({
title: t('nostrRepositoryImportedSuccessfully'),