Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix loading button indicators

Blue Mouse1254ff8e91ff
diff --git a/web/app/routes/tools.ip-lookup.tsx b/web/app/routes/tools.ip-lookup.tsx
index 26104dcf9..17ef124fe 100644
--- a/web/app/routes/tools.ip-lookup.tsx
+++ b/web/app/routes/tools.ip-lookup.tsx
@@ -288,15 +288,14 @@ export default function IpLookup() {
regular
disabled={isLoading}
className='mt-px'
+ loading={isLoading}
>
- {isLoading ? (
- <Spin className='h-4 w-4' />
- ) : (
+ {isLoading ? null : (
<>
<MagnifyingGlassIcon className='mr-1.5 h-4 w-4' />
- Lookup
</>
)}
+ Lookup
</Button>
</form>
</div>
diff --git a/web/app/routes/tools.sitemap-validator.tsx b/web/app/routes/tools.sitemap-validator.tsx
index c7bb1bfef..3faddb7fb 100644
--- a/web/app/routes/tools.sitemap-validator.tsx
+++ b/web/app/routes/tools.sitemap-validator.tsx
@@ -673,15 +673,14 @@ export default function SitemapValidator() {
regular
disabled={isLoading}
className='mt-px'
+ loading={isLoading}
>
- {isLoading ? (
- <Spin className='h-4 w-4' />
- ) : (
+ {isLoading ? null : (
<>
<MagnifyingGlassIcon className='mr-1.5 h-4 w-4' />
- Validate
</>
)}
+ Validate
</Button>
</form>
</div>