Move toId to shared/utils/functions.ts

This commit is contained in:
Hornwitser 2025-03-15 13:46:13 +01:00
parent 02be8a37a5
commit 262a691ed6
4 changed files with 8 additions and 13 deletions

View file

@ -1,5 +1,6 @@
import { Account } from "~/shared/types/account";
import { Role, Schedule, Shift, ShiftSlot, TimeSlot } from "~/shared/types/schedule";
import { toId } from "~/shared/utils/functions";
const locations = [
{
@ -184,10 +185,6 @@ const rota = [
},
]
function toId(name: string) {
return name.toLowerCase().replace(/ /g, "-");
}
function toIso(date: Date) {
return date.toISOString().replace(":00.000Z", "Z");
}