Fix linter errors

This commit is contained in:
Alex Gleason committed 2025-10-15 12:01:32 -05:00
1 parent 1c4b1e6263
commit 8c125db804
10 files changed
+79 -72

No files matched your search

@@ -71,15 +71,6 @@ export function AnnounceRepositoryDialog({
}
}, [open]);
useEffect(() => {
if (isOpen && remoteUrl) {
// Parse remote URL to pre-fill data
parseRemoteUrl(remoteUrl);
// Get earliest commit
getEarliestCommit();
}
}, [isOpen, remoteUrl, parseRemoteUrl, getEarliestCommit]);
const parseRemoteUrl = useCallback((url: string) => {
// Extract repo ID from Nostr URL
if (url.startsWith('nostr://')) {
@@ -114,6 +105,15 @@ export function AnnounceRepositoryDialog({
}
}, [git, projectPath]);
useEffect(() => {
if (isOpen && remoteUrl) {
// Parse remote URL to pre-fill data
parseRemoteUrl(remoteUrl);
// Get earliest commit
getEarliestCommit();
}
}, [isOpen, remoteUrl, parseRemoteUrl, getEarliestCommit]);
const addWebUrl = () => {
if (newWebUrl.trim() && !webUrls.includes(newWebUrl.trim())) {
setWebUrls([...webUrls, newWebUrl.trim()]);