Fix roles page locale label typing
This commit is contained in:
@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user