- {refreshInSeconds !== 0 ? secondsToHuman(refreshInSeconds) : 'Never'}
-
+
+ Refresh data
+
+ {refreshInSeconds !== 0 ? secondsToHuman(refreshInSeconds) : 'Never'}
+
+
+
+
);
};
-const themeSelectedDropdownClassname = 'text-blue-500 dark:text-blue-300';
-const themeDropdownClassname = 'text-gray-700 dark:text-gray-400';
-
const RefreshDropdownItem = ({
seconds,
selectedSeconds,
@@ -150,11 +154,7 @@ const RefreshDropdownItem = ({
onClick={() => {
onClick(seconds);
}}
- className={
- seconds === selectedSeconds
- ? themeSelectedDropdownClassname
- : themeDropdownClassname
- }
+ selected={seconds === selectedSeconds}
>
{children}
diff --git a/deepfence_frontend/apps/dashboard/src/components/icons/common/CaretDown.tsx b/deepfence_frontend/apps/dashboard/src/components/icons/common/CaretDown.tsx
new file mode 100644
index 0000000000..055e65b711
--- /dev/null
+++ b/deepfence_frontend/apps/dashboard/src/components/icons/common/CaretDown.tsx
@@ -0,0 +1,16 @@
+export const CaretDown = () => {
+ return (
+