diff --git a/src/components/ContributionButton.astro b/src/components/ContributionButton.astro
index ea8a041..79a0218 100644
--- a/src/components/ContributionButton.astro
+++ b/src/components/ContributionButton.astro
@@ -1,5 +1,5 @@
---
-// src/components/ContributionButton.astro
+// src/components/ContributionButton.astro - CLEANED: Removed duplicate auth script
export interface Props {
type: 'edit' | 'new' | 'write';
toolName?: string;
@@ -69,33 +69,4 @@ const iconSize = variant === 'small' ? '14' : '16';
{displayText}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/components/ToolMatrix.astro b/src/components/ToolMatrix.astro
index c4be5fc..d9bc440 100644
--- a/src/components/ToolMatrix.astro
+++ b/src/components/ToolMatrix.astro
@@ -852,32 +852,5 @@ domains.forEach((domain: any) => {
}
}
});
- document.addEventListener('DOMContentLoaded', () => {
- // Auth check for contribution buttons (similar to existing auth checking pattern)
- function setupContributionButtonAuth() {
- document.addEventListener('click', async (e) => {
- const contributeButton = e.target.closest('[data-contribute-button]');
- if (!contributeButton) return;
-
- e.preventDefault();
-
- try {
- const response = await fetch('/api/auth/status');
- const data = await response.json();
-
- if (data.authRequired && !data.authenticated) {
- const returnUrl = contributeButton.href;
- window.location.href = `/api/auth/login?returnTo=${encodeURIComponent(returnUrl)}`;
- } else {
- window.location.href = contributeButton.href;
- }
- } catch (error) {
- console.error('Auth check failed:', error);
- window.location.href = contributeButton.href;
- }
- });
- }
-
setupContributionButtonAuth();
- });
\ No newline at end of file
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 7f364de..6984fd5 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -53,7 +53,7 @@ const tools = data.tools;
-
+