Fix roles page locale label typing

This commit is contained in:
2026-05-22 18:54:51 +07:00
parent 5144207c42
commit 96b326edd8

View File

@ -167,7 +167,7 @@ const rolesLabels = {
}, },
} as const; } as const;
function formatRelativeTime(value: string, labels: (typeof rolesLabels)['en']) { function formatRelativeTime(value: string, labels: (typeof rolesLabels)[keyof typeof rolesLabels]) {
const diff = Date.now() - new Date(value).getTime(); const diff = Date.now() - new Date(value).getTime();
const minutes = Math.max(1, Math.floor(diff / 60000)); const minutes = Math.max(1, Math.floor(diff / 60000));