mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Fix linter errors
This commit is contained in:
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()]);
|
||||
|
||||
Reference in new issue
Block a user