diff --git a/web/src/components/Icons.tsx b/web/src/components/Icons.tsx
index a5c4da3..be8a93b 100644
--- a/web/src/components/Icons.tsx
+++ b/web/src/components/Icons.tsx
@@ -15,3 +15,7 @@ export const SortUpIcon = ({ className }: IconProps) => (
export const SortDownIcon = ({ className }: IconProps) => (
);
+
+export const RingResizeSpinner = ({ className }: IconProps) => (
+
+);
diff --git a/web/src/screens/Logs.tsx b/web/src/screens/Logs.tsx
index cdd1c60..dafe906 100644
--- a/web/src/screens/Logs.tsx
+++ b/web/src/screens/Logs.tsx
@@ -14,6 +14,7 @@ import {
import { useQuery } from "react-query";
import { Menu, Transition } from "@headlessui/react";
import { baseUrl } from "../utils";
+import { RingResizeSpinner } from "@/components/Icons";
type LogEvent = {
@@ -148,7 +149,7 @@ export const Logs = () => {
@@ -208,38 +209,6 @@ interface LogFilesItemProps {
file: LogFile;
}
-const Dots = () => {
- const [step, setStep] = useState(1);
-
- useEffect(() => {
- const interval = setInterval(() => {
- setStep((prevStep) => (prevStep % 3) + 1);
- }, 300);
-
- return () => clearInterval(interval);
- }, []);
-
- return (
-
- );
-};
-
const LogFilesItem = ({ file }: LogFilesItemProps) => {
const [isDownloading, setIsDownloading] = useState(false);
@@ -279,7 +248,7 @@ const LogFilesItem = ({ file }: LogFilesItemProps) => {
"text-gray-900 dark:text-gray-300",
"font-medium group flex rounded-md items-center px-2 py-2 text-sm"
)}
- title="Download file"
+ title={!isDownloading ? "Download file" : "Sanitizing log..."}
onClick={handleDownload}
>
{!isDownloading ? (
@@ -288,10 +257,10 @@ const LogFilesItem = ({ file }: LogFilesItemProps) => {
aria-hidden="true"
/>
) : (
-
- Sanitizing log
-
-
+
)}