mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Refactor ProjectsManager.cloneProject to accept an options object
This commit is contained in:
4 files changed
+26
-6
No files matched your search
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user