summaryrefslogtreecommitdiff
path: root/src/modules/sidebar/dashboard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sidebar/dashboard.tsx')
-rw-r--r--src/modules/sidebar/dashboard.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/sidebar/dashboard.tsx b/src/modules/sidebar/dashboard.tsx
index df7be2b..1a8626f 100644
--- a/src/modules/sidebar/dashboard.tsx
+++ b/src/modules/sidebar/dashboard.tsx
@@ -1,4 +1,5 @@
import Players from "@/services/players";
+import { lengthStr } from "@/utils/strings";
import { bindCurrentTime, osIcon } from "@/utils/system";
import Slider from "@/widgets/slider";
import { bind, GLib, monitorFile, Variable } from "astal";
@@ -7,11 +8,6 @@ import AstalMpris from "gi://AstalMpris";
import Notifications from "./modules/notifications";
import Upcoming from "./modules/upcoming";
-const lengthStr = (length: number) =>
- `${Math.floor(length / 60)}:${Math.floor(length % 60)
- .toString()
- .padStart(2, "0")}`;
-
const noNull = (s: string | null) => s ?? "-";
const FaceFallback = () => (